From d3c89131b346e0e24875e89d516718448886beda Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Thu, 13 Jun 2024 14:52:30 +0800 Subject: [PATCH] Upgrade Azure.ResourceManager.EventHubs to 2024-01 (#44547) --- .../Azure.ResourceManager.EventHubs.sln | 2 - .../CHANGELOG.md | 11 +- ...esourceManager.EventHubs.netstandard2.0.cs | 60 +---- ...ple_EventHubAuthorizationRuleCollection.cs | 10 +- ...ample_EventHubAuthorizationRuleResource.cs | 10 +- .../Samples/Sample_EventHubCollection.cs | 11 +- .../Samples/Sample_EventHubResource.cs | 7 +- ...ple_EventHubsApplicationGroupCollection.cs | 10 +- ...ample_EventHubsApplicationGroupResource.cs | 6 +- .../Sample_EventHubsClusterCollection.cs | 10 +- .../Sample_EventHubsClusterResource.cs | 16 +- ...Sample_EventHubsConsumerGroupCollection.cs | 10 +- .../Sample_EventHubsConsumerGroupResource.cs | 6 +- ...sterRecoveryAuthorizationRuleCollection.cs | 8 +- ...sasterRecoveryAuthorizationRuleResource.cs | 4 +- ...ple_EventHubsDisasterRecoveryCollection.cs | 10 +- ...ample_EventHubsDisasterRecoveryResource.cs | 10 +- ...ubsNamespaceAuthorizationRuleCollection.cs | 10 +- ...tHubsNamespaceAuthorizationRuleResource.cs | 10 +- .../Sample_EventHubsNamespaceCollection.cs | 84 +------ .../Sample_EventHubsNamespaceResource.cs | 50 +--- .../Sample_EventHubsNetworkRuleSetResource.cs | 4 +- ...HubsPrivateEndpointConnectionCollection.cs | 10 +- ...ntHubsPrivateEndpointConnectionResource.cs | 6 +- .../Sample_EventHubsSchemaGroupCollection.cs | 10 +- .../Sample_EventHubsSchemaGroupResource.cs | 6 +- .../Azure.ResourceManager.EventHubs.csproj | 2 +- .../src/Generated/ArmEventHubsModelFactory.cs | 8 +- .../EventHubAuthorizationRuleCollection.cs | 20 +- .../EventHubAuthorizationRuleResource.cs | 20 +- .../src/Generated/EventHubCollection.cs | 20 +- .../Generated/EventHubData.Serialization.cs | 35 +++ .../src/Generated/EventHubData.cs | 7 +- .../src/Generated/EventHubResource.cs | 20 +- .../EventHubsApplicationGroupCollection.cs | 20 +- .../EventHubsApplicationGroupResource.cs | 12 +- .../Generated/EventHubsClusterCollection.cs | 20 +- .../src/Generated/EventHubsClusterResource.cs | 36 +-- .../EventHubsConsumerGroupCollection.cs | 20 +- .../EventHubsConsumerGroupResource.cs | 12 +- ...sterRecoveryAuthorizationRuleCollection.cs | 16 +- ...sasterRecoveryAuthorizationRuleResource.cs | 8 +- .../EventHubsDisasterRecoveryCollection.cs | 20 +- .../EventHubsDisasterRecoveryResource.cs | 24 +- ...ubsNamespaceAuthorizationRuleCollection.cs | 20 +- ...tHubsNamespaceAuthorizationRuleResource.cs | 20 +- .../Generated/EventHubsNamespaceCollection.cs | 20 +- .../EventHubsNamespaceData.Serialization.cs | 31 --- .../src/Generated/EventHubsNamespaceData.cs | 7 +- .../Generated/EventHubsNamespaceResource.cs | 156 +++--------- .../EventHubsNetworkRuleSetResource.cs | 8 +- ...HubsPrivateEndpointConnectionCollection.cs | 20 +- ...ntHubsPrivateEndpointConnectionResource.cs | 12 +- .../EventHubsSchemaGroupCollection.cs | 20 +- .../Generated/EventHubsSchemaGroupResource.cs | 12 +- .../Extensions/EventHubsExtensions.cs | 24 +- .../MockableEventHubsResourceGroupResource.cs | 8 +- .../MockableEventHubsSubscriptionResource.cs | 16 +- .../NamespaceFailOverContent.Serialization.cs | 156 ------------ .../Models/NamespaceFailOverContent.cs | 72 ------ .../Models/NamespaceGeoDRRoleType.cs | 51 ---- ...DataReplicationProperties.Serialization.cs | 208 ---------------- .../NamespaceGeoDataReplicationProperties.cs | 72 ------ .../NamespaceReplicaLocation.Serialization.cs | 223 ------------------ .../Models/NamespaceReplicaLocation.cs | 77 ------ .../ApplicationGroupRestOperations.cs | 2 +- .../RestOperations/ClustersRestOperations.cs | 2 +- .../ConfigurationRestOperations.cs | 2 +- .../ConsumerGroupsRestOperations.cs | 2 +- .../DisasterRecoveryConfigsRestOperations.cs | 2 +- .../RestOperations/EventHubsRestOperations.cs | 2 +- .../NamespacesRestOperations.cs | 94 +------- ...ityPerimeterConfigurationRestOperations.cs | 2 +- ...tyPerimeterConfigurationsRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- .../PrivateLinkResourcesRestOperations.cs | 2 +- .../SchemaRegistryRestOperations.cs | 2 +- .../src/autorest.md | 4 +- 78 files changed, 433 insertions(+), 1631 deletions(-) delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.Serialization.cs delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.cs delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDRRoleType.cs delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.Serialization.cs delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.Serialization.cs delete mode 100644 sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/Azure.ResourceManager.EventHubs.sln b/sdk/eventhub/Azure.ResourceManager.EventHubs/Azure.ResourceManager.EventHubs.sln index 49d607cb96de9..d952da6ab2a2f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/Azure.ResourceManager.EventHubs.sln +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/Azure.ResourceManager.EventHubs.sln @@ -6,8 +6,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Event EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.EventHubs.Tests", "tests\Azure.ResourceManager.EventHubs.Tests.csproj", "{1F7C0467-6229-4DAF-8F7C-97E12A70BC3F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{5AFADD62-1535-4E51-959F-A49DE0F0AA66}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.EventHubs.Samples", "samples\Azure.ResourceManager.EventHubs.Samples.csproj", "{345B5F10-60F6-47F5-8EAA-8F0BF29E84DC}" EndProject Global diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/CHANGELOG.md b/sdk/eventhub/Azure.ResourceManager.EventHubs/CHANGELOG.md index 8dee78ab8d372..b31f7df36dcb7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/CHANGELOG.md +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.9 (Unreleased) +## 1.1.0 (2024-06-14) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Upgraded api-version tag from 'package-2023-01-preview' to 'package-2024-01'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/a8c212bc18177ac4891ec93aa7b4c5c834c156e4/specification/eventhub/resource-manager/readme.md ### Other Changes +- Upgraded Azure.Core from 1.25.0 to 1.40.0 +- Upgraded Azure.ResourceManager from 1.2.0 to 1.12.0 + ## 1.1.0-beta.8 (2024-05-07) ### Bugs Fixed @@ -288,4 +289,4 @@ After upgrade: var createAuthorizationRuleParameter = new AuthorizationRuleData(); createAuthorizationRuleParameter.Rights.Add(AccessRights.Listen); createAuthorizationRuleParameter.Rights.Add(AccessRights.Send); -``` +``` \ No newline at end of file diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.netstandard2.0.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.netstandard2.0.cs index 0708fb7889f9c..48d97dcec6825 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.netstandard2.0.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.netstandard2.0.cs @@ -71,6 +71,7 @@ public partial class EventHubData : Azure.ResourceManager.Models.ResourceData, S public Azure.ResourceManager.EventHubs.Models.RetentionDescription RetentionDescription { get { throw null; } set { } } public Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus? Status { get { throw null; } set { } } public System.DateTimeOffset? UpdatedOn { get { throw null; } } + public string UserMetadata { get { throw null; } set { } } Azure.ResourceManager.EventHubs.EventHubData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.EventHubs.EventHubData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -459,7 +460,6 @@ public partial class EventHubsNamespaceData : Azure.ResourceManager.Models.Track public System.DateTimeOffset? CreatedOn { get { throw null; } } public bool? DisableLocalAuth { get { throw null; } set { } } public Azure.ResourceManager.EventHubs.Models.EventHubsEncryption Encryption { get { throw null; } set { } } - public Azure.ResourceManager.EventHubs.Models.NamespaceGeoDataReplicationProperties GeoDataReplication { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsAutoInflateEnabled { get { throw null; } set { } } public bool? KafkaEnabled { get { throw null; } set { } } @@ -495,8 +495,6 @@ public partial class EventHubsNamespaceResource : Azure.ResourceManager.ArmResou public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Failover(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.Models.NamespaceFailOverContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task FailoverAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.Models.NamespaceFailOverContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetEventHub(string eventHubName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -714,7 +712,7 @@ namespace Azure.ResourceManager.EventHubs.Models public static partial class ArmEventHubsModelFactory { public static Azure.ResourceManager.EventHubs.Models.AvailableCluster AvailableCluster(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubData EventHubData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable partitionIds = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), long? partitionCount = default(long?), Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus? status = default(Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus?), Azure.ResourceManager.EventHubs.Models.CaptureDescription captureDescription = null, Azure.ResourceManager.EventHubs.Models.RetentionDescription retentionDescription = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.EventHubs.EventHubData EventHubData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable partitionIds = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), long? partitionCount = default(long?), Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus? status = default(Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus?), string userMetadata = null, Azure.ResourceManager.EventHubs.Models.CaptureDescription captureDescription = null, Azure.ResourceManager.EventHubs.Models.RetentionDescription retentionDescription = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeys EventHubsAccessKeys(string primaryConnectionString = null, string secondaryConnectionString = null, string aliasPrimaryConnectionString = null, string aliasSecondaryConnectionString = null, string primaryKey = null, string secondaryKey = null, string keyName = null) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsApplicationGroupData EventHubsApplicationGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isEnabled = default(bool?), string clientAppGroupIdentifier = null, System.Collections.Generic.IEnumerable policies = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsAuthorizationRuleData EventHubsAuthorizationRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable rights = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } @@ -722,7 +720,7 @@ public static partial class ArmEventHubsModelFactory public static Azure.ResourceManager.EventHubs.EventHubsConsumerGroupData EventHubsConsumerGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string userMetadata = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryData EventHubsDisasterRecoveryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryProvisioningState? provisioningState = default(Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryProvisioningState?), string partnerNamespace = null, string alternateName = null, Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryRole? role = default(Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryRole?), long? pendingReplicationOperationsCount = default(long?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityResult EventHubsNameAvailabilityResult(string message = null, bool? nameAvailable = default(bool?), Azure.ResourceManager.EventHubs.Models.EventHubsNameUnavailableReason? reason = default(Azure.ResourceManager.EventHubs.Models.EventHubsNameUnavailableReason?)) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsNamespaceData EventHubsNamespaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EventHubs.Models.EventHubsSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion?), string provisioningState = null, string status = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string serviceBusEndpoint = null, Azure.Core.ResourceIdentifier clusterArmId = null, string metricId = null, bool? isAutoInflateEnabled = default(bool?), Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess?), int? maximumThroughputUnits = default(int?), bool? kafkaEnabled = default(bool?), bool? zoneRedundant = default(bool?), Azure.ResourceManager.EventHubs.Models.EventHubsEncryption encryption = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, bool? disableLocalAuth = default(bool?), string alternateName = null, Azure.ResourceManager.EventHubs.Models.NamespaceGeoDataReplicationProperties geoDataReplication = null) { throw null; } + public static Azure.ResourceManager.EventHubs.EventHubsNamespaceData EventHubsNamespaceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EventHubs.Models.EventHubsSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion?), string provisioningState = null, string status = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string serviceBusEndpoint = null, Azure.Core.ResourceIdentifier clusterArmId = null, string metricId = null, bool? isAutoInflateEnabled = default(bool?), Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess?), int? maximumThroughputUnits = default(int?), bool? kafkaEnabled = default(bool?), bool? zoneRedundant = default(bool?), Azure.ResourceManager.EventHubs.Models.EventHubsEncryption encryption = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, bool? disableLocalAuth = default(bool?), string alternateName = null) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetData EventHubsNetworkRuleSetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? trustedServiceAccessEnabled = default(bool?), Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction? defaultAction = default(Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction?), System.Collections.Generic.IEnumerable virtualNetworkRules = null, System.Collections.Generic.IEnumerable ipRules = null, Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag? publicNetworkAccess = default(Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeter EventHubsNetworkSecurityPerimeter(string id = null, string perimeterGuid = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfiguration EventHubsNetworkSecurityPerimeterConfiguration(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationProvisioningState? provisioningState = default(Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationProvisioningState?), System.Collections.Generic.IEnumerable provisioningIssues = null, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeter networkSecurityPerimeter = null, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation = null, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile profile = null, bool? isBackingResource = default(bool?), System.Collections.Generic.IEnumerable applicableFeatures = null, string parentAssociationName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } @@ -1514,58 +1512,6 @@ public partial class EventHubsThrottlingPolicy : Azure.ResourceManager.EventHubs public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion left, Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion right) { throw null; } public override string ToString() { throw null; } } - public partial class NamespaceFailOverContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NamespaceFailOverContent() { } - public int? MaximumGracePeriodInMins { get { throw null; } set { } } - public Azure.Core.AzureLocation? PrimaryLocation { get { throw null; } set { } } - Azure.ResourceManager.EventHubs.Models.NamespaceFailOverContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.EventHubs.Models.NamespaceFailOverContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class NamespaceGeoDataReplicationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NamespaceGeoDataReplicationProperties() { } - public System.Collections.Generic.IList Locations { get { throw null; } } - public int? MaxReplicationLagDurationInSeconds { get { throw null; } set { } } - Azure.ResourceManager.EventHubs.Models.NamespaceGeoDataReplicationProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.EventHubs.Models.NamespaceGeoDataReplicationProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct NamespaceGeoDRRoleType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public NamespaceGeoDRRoleType(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType Primary { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType Secondary { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType left, Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType left, Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType right) { throw null; } - public override string ToString() { throw null; } - } - public partial class NamespaceReplicaLocation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NamespaceReplicaLocation() { } - public Azure.Core.ResourceIdentifier ClusterArmId { get { throw null; } set { } } - public string LocationName { get { throw null; } set { } } - public Azure.ResourceManager.EventHubs.Models.NamespaceGeoDRRoleType? RoleType { get { throw null; } set { } } - Azure.ResourceManager.EventHubs.Models.NamespaceReplicaLocation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.EventHubs.Models.NamespaceReplicaLocation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class RetentionDescription : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RetentionDescription() { } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleCollection.cs index d40ab219bcc73..7aa387712e8af 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubAuthorizationRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_EventHubAuthorizationRuleListAll() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleListAll.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleListAll.json // this example is just showing the usage of "EventHubs_ListAuthorizationRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ await foreach (EventHubAuthorizationRuleResource item in collection.GetAllAsync( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_EventHubAuthorizationRuleCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json // this example is just showing the usage of "EventHubs_CreateOrUpdateAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task CreateOrUpdate_EventHubAuthorizationRuleCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EventHubAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleGet.json // this example is just showing the usage of "EventHubs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task Get_EventHubAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_EventHubAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleGet.json // this example is just showing the usage of "EventHubs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Exists_EventHubAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_EventHubAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleGet.json // this example is just showing the usage of "EventHubs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleResource.cs index fa6cec7af0cbe..242e7dcfe61dd 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubAuthorizationRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubAuthorizationRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_EventHubAuthorizationRuleCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json // this example is just showing the usage of "EventHubs_CreateOrUpdateAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task Update_EventHubAuthorizationRuleCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EventHubAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleGet.json // this example is just showing the usage of "EventHubs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_EventHubAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_EventHubAuthorizationRuleDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleDelete.json // this example is just showing the usage of "EventHubs_DeleteAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Delete_EventHubAuthorizationRuleDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_EventHubAuthorizationRuleListKey() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleListKey.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleListKey.json // this example is just showing the usage of "EventHubs_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task GetKeys_EventHubAuthorizationRuleListKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RegenerateKeys_EventHubAuthorizationRuleRegenerateKey() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleRegenerateKey.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubAuthorizationRuleRegenerateKey.json // this example is just showing the usage of "EventHubs_RegenerateKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs index cdcdeca9f7777..8bb8d832fd6fe 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_EventHubsListAll() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubListByNameSpace.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubListByNameSpace.json // this example is just showing the usage of "EventHubs_ListByNamespace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubResource item in collection.GetAllAsync()) [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_EventHubCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubCreate.json // this example is just showing the usage of "EventHubs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,6 +82,7 @@ public async Task CreateOrUpdate_EventHubCreate() { PartitionCount = 4, Status = EventHubEntityStatus.Active, + UserMetadata = "key", CaptureDescription = new CaptureDescription() { Enabled = true, @@ -123,7 +124,7 @@ public async Task CreateOrUpdate_EventHubCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EventHubGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubGet.json // this example is just showing the usage of "EventHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +159,7 @@ public async Task Get_EventHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_EventHubGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubGet.json // this example is just showing the usage of "EventHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +190,7 @@ public async Task Exists_EventHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_EventHubGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubGet.json // this example is just showing the usage of "EventHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs index b05bfff4c4fda..8a5fcecbc171c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_EventHubCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubCreate.json // this example is just showing the usage of "EventHubs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -42,6 +42,7 @@ public async Task Update_EventHubCreate() { PartitionCount = 4, Status = EventHubEntityStatus.Active, + UserMetadata = "key", CaptureDescription = new CaptureDescription() { Enabled = true, @@ -83,7 +84,7 @@ public async Task Update_EventHubCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_EventHubDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubDelete.json // this example is just showing the usage of "EventHubs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +112,7 @@ public async Task Delete_EventHubDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EventHubGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/EventHubs/EHEventHubGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/EventHubs/EHEventHubGet.json // this example is just showing the usage of "EventHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs index 67e157d732d06..928a69fbb44f7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsApplicationGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListApplicationGroups() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupListByNamespace.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupListByNamespace.json // this example is just showing the usage of "ApplicationGroup_ListByNamespace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubsApplicationGroupResource item in collection.GetAllAsync( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApplicationGroupCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupCreate.json // this example is just showing the usage of "ApplicationGroup_CreateOrUpdateApplicationGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task CreateOrUpdate_ApplicationGroupCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupGet.json // this example is just showing the usage of "ApplicationGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task Get_ApplicationGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ApplicationGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupGet.json // this example is just showing the usage of "ApplicationGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task Exists_ApplicationGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ApplicationGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupGet.json // this example is just showing the usage of "ApplicationGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs index 5b44f990cd335..ddf4ce022a236 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsApplicationGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApplicationGroupCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupCreate.json // this example is just showing the usage of "ApplicationGroup_CreateOrUpdateApplicationGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task Update_ApplicationGroupCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ApplicationGroupDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupDelete.json // this example is just showing the usage of "ApplicationGroup_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Delete_ApplicationGroupDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ApplicationGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ApplicationGroup/ApplicationGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ApplicationGroup/ApplicationGroupGet.json // this example is just showing the usage of "ApplicationGroup_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs index b5c4a1f69fb4d..e6ead60ff7ae3 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_EventHubsClusterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ClustersListByResourceGroup() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClustersListByResourceGroup.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClustersListByResourceGroup.json // this example is just showing the usage of "Clusters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubsClusterResource item in collection.GetAllAsync()) [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ClusterGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterGet.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_ClusterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ClusterGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterGet.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Exists_ClusterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ClusterGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterGet.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetIfExists_ClusterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ClusterPut() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterPut.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterPut.json // this example is just showing the usage of "Clusters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs index 6adc4d8de94bb..8f30c2800185e 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs @@ -22,7 +22,7 @@ public partial class Sample_EventHubsClusterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableClusterRegionClusters_ListAvailableClusters() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ListAvailableClustersGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ListAvailableClustersGet.json // this example is just showing the usage of "Clusters_ListAvailableClusterRegion" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ await foreach (AvailableCluster item in subscriptionResource.GetAvailableCluster [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetEventHubsClusters_ClustersListBySubscription() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClustersListBySubscription.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClustersListBySubscription.json // this example is just showing the usage of "Clusters_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ await foreach (EventHubsClusterResource item in subscriptionResource.GetEventHub [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ClusterGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterGet.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Get_ClusterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ClusterPatch() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterPatch.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterPatch.json // this example is just showing the usage of "Clusters_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task Update_ClusterPatch() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ClusterDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterDelete.json // this example is just showing the usage of "Clusters_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task Delete_ClusterDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNamespaces_ListNamespacesInCluster() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ListNamespacesInClusterGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ListNamespacesInClusterGet.json // this example is just showing the usage of "Clusters_ListNamespaces" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ await foreach (SubResource item in eventHubsCluster.GetNamespacesAsync()) [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PatchConfiguration_ClustersQuotasConfigurationPatch() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterQuotaConfigurationPatch.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterQuotaConfigurationPatch.json // this example is just showing the usage of "Configuration_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task PatchConfiguration_ClustersQuotasConfigurationPatch() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetConfiguration_ClustersQuotasConfigurationGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/Clusters/ClusterQuotaConfigurationGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/ClusterQuotaConfigurationGet.json // this example is just showing the usage of "Configuration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupCollection.cs index 142fabe2655d7..5a01c1a48c318 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_EventHubsConsumerGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ConsumerGroupCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupCreate.json // this example is just showing the usage of "ConsumerGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_ConsumerGroupCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConsumerGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupGet.json // this example is just showing the usage of "ConsumerGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_ConsumerGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ConsumerGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupGet.json // this example is just showing the usage of "ConsumerGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Exists_ConsumerGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ConsumerGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupGet.json // this example is just showing the usage of "ConsumerGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task GetIfExists_ConsumerGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ConsumerGroupsListAll() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupListByEventHub.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupListByEventHub.json // this example is just showing the usage of "ConsumerGroups_ListByEventHub" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupResource.cs index 9302f8a4fe121..25ed238cae032 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupResource.cs @@ -19,7 +19,7 @@ public partial class Sample_EventHubsConsumerGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ConsumerGroupCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupCreate.json // this example is just showing the usage of "ConsumerGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Update_ConsumerGroupCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ConsumerGroupDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupDelete.json // this example is just showing the usage of "ConsumerGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Delete_ConsumerGroupDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConsumerGroupGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/ConsumerGroup/EHConsumerGroupGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/ConsumerGroup/EHConsumerGroupGet.json // this example is just showing the usage of "ConsumerGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleCollection.cs index 64a39aecceb0e..8bc57978d2238 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_EventHubsDisasterRecoveryAuthorizationRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAuthorizationRules() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListAll.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListAll.json // this example is just showing the usage of "DisasterRecoveryConfigs_ListAuthorizationRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubsDisasterRecoveryAuthorizationRuleResource item in collec [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_NameSpaceAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_NameSpaceAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleResource.cs index 9523431f070ef..d66561cf40aee 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryAuthorizationRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsDisasterRecoveryAuthorizationRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_NameSpaceAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_NameSpaceAuthorizationRuleListKey() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListKey.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListKey.json // this example is just showing the usage of "DisasterRecoveryConfigs_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryCollection.cs index 269282a5752ff..a7a84a09d8983 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_EventHubsDisasterRecoveryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_EHAliasList() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasList.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasList.json // this example is just showing the usage of "DisasterRecoveryConfigs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ await foreach (EventHubsDisasterRecoveryResource item in collection.GetAllAsync( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_EHAliasCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasCreate.json // this example is just showing the usage of "DisasterRecoveryConfigs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task CreateOrUpdate_EHAliasCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EHAliasGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Get_EHAliasGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_EHAliasGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Exists_EHAliasGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_EHAliasGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryResource.cs index 4452e5b79c368..58c725665793e 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsDisasterRecoveryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_EventHubsDisasterRecoveryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_EHAliasCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasCreate.json // this example is just showing the usage of "DisasterRecoveryConfigs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Update_EHAliasCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_EHAliasDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasDelete.json // this example is just showing the usage of "DisasterRecoveryConfigs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Delete_EHAliasDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EHAliasGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasGet.json // this example is just showing the usage of "DisasterRecoveryConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Get_EHAliasGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BreakPairing_EHAliasBreakPairing() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasBreakPairing.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasBreakPairing.json // this example is just showing the usage of "DisasterRecoveryConfigs_BreakPairing" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task BreakPairing_EHAliasBreakPairing() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task FailOver_EHAliasFailOver() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasFailOver.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasFailOver.json // this example is just showing the usage of "DisasterRecoveryConfigs_FailOver" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleCollection.cs index 05d54059b7a75..601ebb62146ce 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsNamespaceAuthorizationRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAuthorizationRules() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleListAll.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleListAll.json // this example is just showing the usage of "Namespaces_ListAuthorizationRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubsNamespaceAuthorizationRuleResource item in collection.Ge [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NameSpaceAuthorizationRuleCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json // this example is just showing the usage of "Namespaces_CreateOrUpdateAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task CreateOrUpdate_NameSpaceAuthorizationRuleCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json // this example is just showing the usage of "Namespaces_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task Get_NameSpaceAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json // this example is just showing the usage of "Namespaces_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task Exists_NameSpaceAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json // this example is just showing the usage of "Namespaces_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleResource.cs index 4fedc7dd9944b..07ab06590522a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceAuthorizationRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsNamespaceAuthorizationRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NameSpaceAuthorizationRuleCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json // this example is just showing the usage of "Namespaces_CreateOrUpdateAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task Update_NameSpaceAuthorizationRuleCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NameSpaceAuthorizationRuleDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleDelete.json // this example is just showing the usage of "Namespaces_DeleteAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Delete_NameSpaceAuthorizationRuleDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceAuthorizationRuleGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json // this example is just showing the usage of "Namespaces_GetAuthorizationRule" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Get_NameSpaceAuthorizationRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_NameSpaceAuthorizationRuleListKey() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleListKey.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleListKey.json // this example is just showing the usage of "Namespaces_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task GetKeys_NameSpaceAuthorizationRuleListKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RegenerateKeys_NameSpaceAuthorizationRuleRegenerateKey() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleRegenerateKey.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceAuthorizationRuleRegenerateKey.json // this example is just showing the usage of "Namespaces_RegenerateKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs index 09c9a1c80e40e..f817777df1a1d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_EventHubsNamespaceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NamespaceListByResourceGroup() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceListByResourceGroup.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceListByResourceGroup.json // this example is just showing the usage of "Namespaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ await foreach (EventHubsNamespaceResource item in collection.GetAllAsync()) [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NamespaceCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceCreate.json // this example is just showing the usage of "Namespaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,80 +102,6 @@ public async Task CreateOrUpdate_NamespaceCreate() }, KeySource = EventHubsKeySource.MicrosoftKeyVault, }, - GeoDataReplication = new NamespaceGeoDataReplicationProperties() - { - MaxReplicationLagDurationInSeconds = 300, - Locations = -{ -new NamespaceReplicaLocation() -{ -LocationName = "eastus", -RoleType = NamespaceGeoDRRoleType.Primary, -},new NamespaceReplicaLocation() -{ -LocationName = "southcentralus", -RoleType = NamespaceGeoDRRoleType.Secondary, -} -}, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, namespaceName, data); - EventHubsNamespaceResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - EventHubsNamespaceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // NamespaceWithGeoDRCreate - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_NamespaceWithGeoDRCreate() - { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/NamespaceWithGeoDRCreate.json - // this example is just showing the usage of "Namespaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "SampleSubscription"; - string resourceGroupName = "ResurceGroupSample"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this EventHubsNamespaceResource - EventHubsNamespaceCollection collection = resourceGroupResource.GetEventHubsNamespaces(); - - // invoke the operation - string namespaceName = "NamespaceGeoDRCreateSample"; - EventHubsNamespaceData data = new EventHubsNamespaceData(new AzureLocation("East US")) - { - GeoDataReplication = new NamespaceGeoDataReplicationProperties() - { - MaxReplicationLagDurationInSeconds = 60, - Locations = -{ -new NamespaceReplicaLocation() -{ -LocationName = "eastus", -RoleType = NamespaceGeoDRRoleType.Primary, -},new NamespaceReplicaLocation() -{ -LocationName = "westus", -RoleType = NamespaceGeoDRRoleType.Secondary, -},new NamespaceReplicaLocation() -{ -LocationName = "centralus", -RoleType = NamespaceGeoDRRoleType.Secondary, -} -}, - }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, namespaceName, data); EventHubsNamespaceResource result = lro.Value; @@ -192,7 +118,7 @@ public async Task CreateOrUpdate_NamespaceWithGeoDRCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceGet.json // this example is just showing the usage of "Namespaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -226,7 +152,7 @@ public async Task Get_NameSpaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NameSpaceGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceGet.json // this example is just showing the usage of "Namespaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +182,7 @@ public async Task Exists_NameSpaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NameSpaceGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceGet.json // this example is just showing the usage of "Namespaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs index ced23daca626d..8097736f0c54d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs @@ -22,7 +22,7 @@ public partial class Sample_EventHubsNamespaceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetEventHubsNamespaces_NamespacesListBySubscription() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceList.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceList.json // this example is just showing the usage of "Namespaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ await foreach (EventHubsNamespaceResource item in subscriptionResource.GetEventH [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NameSpaceDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceDelete.json // this example is just showing the usage of "Namespaces_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Delete_NameSpaceDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceGet.json // this example is just showing the usage of "Namespaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Get_NameSpaceGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NamespacesUpdate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceUpdate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceUpdate.json // this example is just showing the usage of "Namespaces_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,44 +148,12 @@ public async Task Update_NamespacesUpdate() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // NameSpaceCreate - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Failover_NameSpaceCreate() - { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNamespaceFailover.json - // this example is just showing the usage of "Namespaces_Failover" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this EventHubsNamespaceResource created on azure - // for more information of creating EventHubsNamespaceResource, please refer to the document of EventHubsNamespaceResource - string subscriptionId = "SampleSubscription"; - string resourceGroupName = "ResurceGroupSample"; - string namespaceName = "NamespaceGeoDRFailoverSample"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); - - // invoke the operation - NamespaceFailOverContent content = new NamespaceFailOverContent() - { - PrimaryLocation = new AzureLocation("centralus"), - MaximumGracePeriodInMins = 5, - }; - await eventHubsNamespace.FailoverAsync(WaitUntil.Completed, content); - - Console.WriteLine($"Succeeded"); - } - // NamespacesCheckNameAvailability [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckEventHubsNamespaceNameAvailability_NamespacesCheckNameAvailability() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/EHNameSpaceCheckNameAvailability.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/EHNameSpaceCheckNameAvailability.json // this example is just showing the usage of "Namespaces_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +179,7 @@ public async Task CheckEventHubsNamespaceNameAvailability_NamespacesCheckNameAva [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResources_NameSpacePrivateLinkResourcesGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateLinkResourcesGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateLinkResourcesGet.json // this example is just showing the usage of "PrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -241,7 +209,7 @@ await foreach (EventHubsPrivateLinkResourceData item in eventHubsNamespace.GetPr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkSecurityPerimeterConfigurations_NamspaceNetworkSecurityPerimeterConfigurationList() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/NetworkSecurityPerimeterConfigurationList.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/NetworkSecurityPerimeterConfigurationList.json // this example is just showing the usage of "NetworkSecurityPerimeterConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +239,7 @@ await foreach (EventHubsNetworkSecurityPerimeterConfiguration item in eventHubsN [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdateNetworkSecurityPerimeterConfiguration_NetworkSecurityPerimeterConfigurationList() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/NetworkSecurityPerimeterConfigurationReconcile.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/NetworkSecurityPerimeterConfigurationReconcile.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -299,7 +267,7 @@ public async Task CreateOrUpdateNetworkSecurityPerimeterConfiguration_NetworkSec [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckEventHubsDisasterRecoveryNameAvailability_NamespacesCheckNameAvailability() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/disasterRecoveryConfigs/EHAliasCheckNameAvailability.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/disasterRecoveryConfigs/EHAliasCheckNameAvailability.json // this example is just showing the usage of "DisasterRecoveryConfigs_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNetworkRuleSetResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNetworkRuleSetResource.cs index 2515be68c0775..066e3c3b74866 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNetworkRuleSetResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNetworkRuleSetResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsNetworkRuleSetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NameSpaceNetworkRuleSetCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetCreate.json // this example is just showing the usage of "Namespaces_CreateOrUpdateNetworkRuleSet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task CreateOrUpdate_NameSpaceNetworkRuleSetCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpaceNetworkRuleSetGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetGet.json // this example is just showing the usage of "Namespaces_GetNetworkRuleSet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionCollection.cs index 8ce7904f5ba1f..64bdfffaccefe 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PrivateEndPointConnectionList() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionList.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionList.json // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubsPrivateEndpointConnectionResource item in collection.Get [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NameSpacePrivateEndPointConnectionCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionCreate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task CreateOrUpdate_NameSpacePrivateEndPointConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpacePrivateEndPointConnectionGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task Get_NameSpacePrivateEndPointConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NameSpacePrivateEndPointConnectionGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task Exists_NameSpacePrivateEndPointConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_NameSpacePrivateEndPointConnectionGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionResource.cs index cae7dfba8a7e2..149a056dbec64 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NameSpacePrivateEndPointConnectionCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionCreate.json // this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task Update_NameSpacePrivateEndPointConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NameSpacePrivateEndPointConnectionDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionDelete.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Delete_NameSpacePrivateEndPointConnectionDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NameSpacePrivateEndPointConnectionGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/NameSpaces/PrivateEndPointConnectionGet.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupCollection.cs index 9f064c08d9b5a..054b95b17fef2 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsSchemaGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_SchemaRegistryListAll() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryListByNamespace.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryListByNamespace.json // this example is just showing the usage of "SchemaRegistry_ListByNamespace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ await foreach (EventHubsSchemaGroupResource item in collection.GetAllAsync()) [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SchemaRegistryCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryCreate.json // this example is just showing the usage of "SchemaRegistry_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task CreateOrUpdate_SchemaRegistryCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SchemaRegistryGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryGet.json // this example is just showing the usage of "SchemaRegistry_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task Get_SchemaRegistryGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SchemaRegistryGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryGet.json // this example is just showing the usage of "SchemaRegistry_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task Exists_SchemaRegistryGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SchemaRegistryGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryGet.json // this example is just showing the usage of "SchemaRegistry_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupResource.cs index 9dd195845bf50..90e37088c271c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsSchemaGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EventHubsSchemaGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SchemaRegistryCreate() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryCreate.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryCreate.json // this example is just showing the usage of "SchemaRegistry_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task Update_SchemaRegistryCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_SchemaRegistryDelete() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryDelete.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryDelete.json // this example is just showing the usage of "SchemaRegistry_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Delete_SchemaRegistryDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SchemaRegistryGet() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/examples/SchemaRegistry/SchemaRegistryGet.json + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/SchemaRegistry/SchemaRegistryGet.json // this example is just showing the usage of "SchemaRegistry_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Azure.ResourceManager.EventHubs.csproj b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Azure.ResourceManager.EventHubs.csproj index 8349782ed390e..a5d52839369e1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Azure.ResourceManager.EventHubs.csproj +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Azure.ResourceManager.EventHubs.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.9 + 1.1.0 1.0.0 Azure.ResourceManager.EventHubs diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs index 415432eb563bc..926a5ba5e185d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs @@ -87,9 +87,8 @@ public static EventHubsClusterData EventHubsClusterData(ResourceIdentifier id = /// List of private endpoint connections. /// This property disables SAS authentication for the Event Hubs namespace. /// Alternate name specified when alias and namespace names are same. - /// Geo Data Replication settings for the namespace. /// A new instance for mocking. - public static EventHubsNamespaceData EventHubsNamespaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, EventHubsSku sku = null, ManagedServiceIdentity identity = null, EventHubsTlsVersion? minimumTlsVersion = null, string provisioningState = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, string serviceBusEndpoint = null, ResourceIdentifier clusterArmId = null, string metricId = null, bool? isAutoInflateEnabled = null, EventHubsPublicNetworkAccess? publicNetworkAccess = null, int? maximumThroughputUnits = null, bool? kafkaEnabled = null, bool? zoneRedundant = null, EventHubsEncryption encryption = null, IEnumerable privateEndpointConnections = null, bool? disableLocalAuth = null, string alternateName = null, NamespaceGeoDataReplicationProperties geoDataReplication = null) + public static EventHubsNamespaceData EventHubsNamespaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, EventHubsSku sku = null, ManagedServiceIdentity identity = null, EventHubsTlsVersion? minimumTlsVersion = null, string provisioningState = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, string serviceBusEndpoint = null, ResourceIdentifier clusterArmId = null, string metricId = null, bool? isAutoInflateEnabled = null, EventHubsPublicNetworkAccess? publicNetworkAccess = null, int? maximumThroughputUnits = null, bool? kafkaEnabled = null, bool? zoneRedundant = null, EventHubsEncryption encryption = null, IEnumerable privateEndpointConnections = null, bool? disableLocalAuth = null, string alternateName = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); @@ -120,7 +119,6 @@ public static EventHubsNamespaceData EventHubsNamespaceData(ResourceIdentifier i privateEndpointConnections?.ToList(), disableLocalAuth, alternateName, - geoDataReplication, serializedAdditionalRawData: null); } @@ -458,11 +456,12 @@ public static EventHubsDisasterRecoveryData EventHubsDisasterRecoveryData(Resour /// The exact time the message was updated. /// Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. /// Enumerates the possible values for the status of the Event Hub. + /// Gets and Sets Metadata of User. /// Properties of capture description. /// Event Hub retention settings. /// The geo-location where the resource lives. /// A new instance for mocking. - public static EventHubData EventHubData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable partitionIds = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, long? partitionCount = null, EventHubEntityStatus? status = null, CaptureDescription captureDescription = null, RetentionDescription retentionDescription = null, AzureLocation? location = null) + public static EventHubData EventHubData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable partitionIds = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, long? partitionCount = null, EventHubEntityStatus? status = null, string userMetadata = null, CaptureDescription captureDescription = null, RetentionDescription retentionDescription = null, AzureLocation? location = null) { partitionIds ??= new List(); @@ -476,6 +475,7 @@ public static EventHubData EventHubData(ResourceIdentifier id = null, string nam updatedOn, partitionCount, status, + userMetadata, captureDescription, retentionDescription, location, diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs index 6c3ed7b8fad77..d2169abc073a0 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string authorizat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string authorizationRuleNa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string authorizationRuleName, CancellationT /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs index 181fd0c96efe9..e613b97a83dca 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual async Task> GetKeysAsync(Cancellati /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual Response GetKeys(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -485,7 +485,7 @@ public virtual async Task> RegenerateKeysAsync(Eve /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs index 4ef75c9fa5d56..60c5c4cc6e515 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string eventHubNa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string eventHubName, CancellationT /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? skip = null, int /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? skip = null, int? top = nu /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string eventHubName, Cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string eventHubName, CancellationToken canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsAsync(s /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.Serialization.cs index 568002cdba5b0..742d0dd6a5a14 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.Serialization.cs @@ -87,6 +87,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.Value.ToSerialString()); } + if (Optional.IsDefined(UserMetadata)) + { + writer.WritePropertyName("userMetadata"u8); + writer.WriteStringValue(UserMetadata); + } if (Optional.IsDefined(CaptureDescription)) { writer.WritePropertyName("captureDescription"u8); @@ -146,6 +151,7 @@ internal static EventHubData DeserializeEventHubData(JsonElement element, ModelR DateTimeOffset? updatedAt = default; long? partitionCount = default; EventHubEntityStatus? status = default; + string userMetadata = default; CaptureDescription captureDescription = default; RetentionDescription retentionDescription = default; IDictionary serializedAdditionalRawData = default; @@ -244,6 +250,11 @@ internal static EventHubData DeserializeEventHubData(JsonElement element, ModelR status = property0.Value.GetString().ToEventHubEntityStatus(); continue; } + if (property0.NameEquals("userMetadata"u8)) + { + userMetadata = property0.Value.GetString(); + continue; + } if (property0.NameEquals("captureDescription"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -281,6 +292,7 @@ internal static EventHubData DeserializeEventHubData(JsonElement element, ModelR updatedAt, partitionCount, status, + userMetadata, captureDescription, retentionDescription, location, @@ -466,6 +478,29 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(UserMetadata), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" userMetadata: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(UserMetadata)) + { + builder.Append(" userMetadata: "); + if (UserMetadata.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{UserMetadata}'''"); + } + else + { + builder.AppendLine($"'{UserMetadata}'"); + } + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CaptureDescription), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.cs index 4bbcf3f6e52e7..ddfab7f47a8a4 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubData.cs @@ -67,17 +67,19 @@ public EventHubData() /// The exact time the message was updated. /// Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. /// Enumerates the possible values for the status of the Event Hub. + /// Gets and Sets Metadata of User. /// Properties of capture description. /// Event Hub retention settings. /// The geo-location where the resource lives. /// Keeps track of any properties unknown to the library. - internal EventHubData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IReadOnlyList partitionIds, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, long? partitionCount, EventHubEntityStatus? status, CaptureDescription captureDescription, RetentionDescription retentionDescription, AzureLocation? location, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal EventHubData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IReadOnlyList partitionIds, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, long? partitionCount, EventHubEntityStatus? status, string userMetadata, CaptureDescription captureDescription, RetentionDescription retentionDescription, AzureLocation? location, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { PartitionIds = partitionIds; CreatedOn = createdOn; UpdatedOn = updatedOn; PartitionCount = partitionCount; Status = status; + UserMetadata = userMetadata; CaptureDescription = captureDescription; RetentionDescription = retentionDescription; Location = location; @@ -99,6 +101,9 @@ internal EventHubData(ResourceIdentifier id, string name, ResourceType resourceT /// Enumerates the possible values for the status of the Event Hub. [WirePath("properties.status")] public EventHubEntityStatus? Status { get; set; } + /// Gets and Sets Metadata of User. + [WirePath("properties.userMetadata")] + public string UserMetadata { get; set; } /// Properties of capture description. [WirePath("properties.captureDescription")] public CaptureDescription CaptureDescription { get; set; } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs index cdee21b282e34..6240b58fa588d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs @@ -108,7 +108,7 @@ public virtual EventHubAuthorizationRuleCollection GetEventHubAuthorizationRules /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetEventH /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual EventHubsConsumerGroupCollection GetEventHubsConsumerGroups() /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetEventHubs /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -239,7 +239,7 @@ public virtual Response GetEventHubsConsumerGrou /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Response Get(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> UpdateAsync(WaitUntil /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs index b942ac35d4807..dc06d809e537c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string applicatio /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string applicationGroupNam /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string applicationGroupName, CancellationTo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs index e5488f96c907d..7109fddc327a6 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs index 1adf7c697ed40..9162a81b1a8d5 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string cl /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string clusterName, Cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs index 3af88e22e9758..d9646099a0477 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs @@ -110,7 +110,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -150,7 +150,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -232,7 +232,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAsync(Wa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual AsyncPageable GetNamespacesAsync(CancellationToken c /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual Pageable GetNamespaces(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -462,7 +462,7 @@ public virtual async Task> PatchCo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -500,7 +500,7 @@ public virtual Response PatchConfiguration( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -534,7 +534,7 @@ public virtual async Task> GetConf /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -568,7 +568,7 @@ public virtual Response GetConfiguration(Ca /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -630,7 +630,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -692,7 +692,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -749,7 +749,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -806,7 +806,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -866,7 +866,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs index 529bc10072853..b2daa1335645c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string consumerGroup /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? sk /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? skip = null, /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string consumerGroupName, /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string consumerGroupName, CancellationToken /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs index 29a64fc241454..583ce34584087 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleCollection.cs index d62ca0d31c352..ce7e4d349c6d2 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetA /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string authorizationRuleNa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string authorizationRuleName, CancellationT /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleResource.cs index 44794b2c33388..087c6d4805ae2 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryAuthorizationRuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -221,7 +221,7 @@ public virtual async Task> GetKeysAsync(Cancellati /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs index 9768fc56ea876..1992c2970dcc8 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string @alias, Ca /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string @alias, Cancellatio /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string @alias, CancellationToken cancellati /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs index 91feb6135bd6a..6c1685213900e 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs @@ -108,7 +108,7 @@ public virtual EventHubsDisasterRecoveryAuthorizationRuleCollection GetEventHubs /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetE /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -434,7 +434,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -472,7 +472,7 @@ public virtual async Task BreakPairingAsync(CancellationToken cancella /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -510,7 +510,7 @@ public virtual Response BreakPairing(CancellationToken cancellationToken = defau /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task FailOverAsync(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs index 6def8978c5140..06da2ca90e457 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string authorizationRuleNa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string authorizationRuleName, CancellationT /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs index add73b503cbfb..f2b0e0d87e8e6 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual ArmOperation Update( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task> GetKeysAsync(Cancellati /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual Response GetKeys(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> RegenerateKeysAsync(Eve /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs index 92dfa825ee398..67c05dd8c6497 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string namespaceName, Ca /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string namespaceName, Canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string namespaceName, CancellationToken can /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.Serialization.cs index 2e659369429e1..23b029c19dac0 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.Serialization.cs @@ -165,11 +165,6 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader writer.WritePropertyName("alternateName"u8); writer.WriteStringValue(AlternateName); } - if (Optional.IsDefined(GeoDataReplication)) - { - writer.WritePropertyName("geoDataReplication"u8); - writer.WriteObjectValue(GeoDataReplication, options); - } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -234,7 +229,6 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle IList privateEndpointConnections = default; bool? disableLocalAuth = default; string alternateName = default; - NamespaceGeoDataReplicationProperties geoDataReplication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -447,15 +441,6 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle alternateName = property0.Value.GetString(); continue; } - if (property0.NameEquals("geoDataReplication"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - geoDataReplication = NamespaceGeoDataReplicationProperties.DeserializeNamespaceGeoDataReplicationProperties(property0.Value, options); - continue; - } } continue; } @@ -491,7 +476,6 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle privateEndpointConnections ?? new ChangeTrackingList(), disableLocalAuth, alternateName, - geoDataReplication, serializedAdditionalRawData); } @@ -949,21 +933,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(GeoDataReplication), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" geoDataReplication: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(GeoDataReplication)) - { - builder.Append(" geoDataReplication: "); - BicepSerializationHelpers.AppendChildObject(builder, GeoDataReplication, options, 4, false, " geoDataReplication: "); - } - } - builder.AppendLine(" }"); builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs index a5d02dc221873..eeda3b4e60b7d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs @@ -84,9 +84,8 @@ public EventHubsNamespaceData(AzureLocation location) : base(location) /// List of private endpoint connections. /// This property disables SAS authentication for the Event Hubs namespace. /// Alternate name specified when alias and namespace names are same. - /// Geo Data Replication settings for the namespace. /// Keeps track of any properties unknown to the library. - internal EventHubsNamespaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, EventHubsSku sku, ManagedServiceIdentity identity, EventHubsTlsVersion? minimumTlsVersion, string provisioningState, string status, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, string serviceBusEndpoint, ResourceIdentifier clusterArmId, string metricId, bool? isAutoInflateEnabled, EventHubsPublicNetworkAccess? publicNetworkAccess, int? maximumThroughputUnits, bool? kafkaEnabled, bool? zoneRedundant, EventHubsEncryption encryption, IList privateEndpointConnections, bool? disableLocalAuth, string alternateName, NamespaceGeoDataReplicationProperties geoDataReplication, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal EventHubsNamespaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, EventHubsSku sku, ManagedServiceIdentity identity, EventHubsTlsVersion? minimumTlsVersion, string provisioningState, string status, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, string serviceBusEndpoint, ResourceIdentifier clusterArmId, string metricId, bool? isAutoInflateEnabled, EventHubsPublicNetworkAccess? publicNetworkAccess, int? maximumThroughputUnits, bool? kafkaEnabled, bool? zoneRedundant, EventHubsEncryption encryption, IList privateEndpointConnections, bool? disableLocalAuth, string alternateName, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Identity = identity; @@ -107,7 +106,6 @@ internal EventHubsNamespaceData(ResourceIdentifier id, string name, ResourceType PrivateEndpointConnections = privateEndpointConnections; DisableLocalAuth = disableLocalAuth; AlternateName = alternateName; - GeoDataReplication = geoDataReplication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -173,8 +171,5 @@ internal EventHubsNamespaceData() /// Alternate name specified when alias and namespace names are same. [WirePath("properties.alternateName")] public string AlternateName { get; set; } - /// Geo Data Replication settings for the namespace. - [WirePath("properties.geoDataReplication")] - public NamespaceGeoDataReplicationProperties GeoDataReplication { get; set; } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs index be0286abc90d2..c280743df014f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs @@ -134,7 +134,7 @@ public virtual EventHubsNamespaceAuthorizationRuleCollection GetEventHubsNamespa /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual EventHubsPrivateEndpointConnectionCollection GetEventHubsPrivateE /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -234,7 +234,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual EventHubsDisasterRecoveryCollection GetEventHubsDisasterRecoverie /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -303,7 +303,7 @@ public virtual async Task> GetEventH /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual EventHubCollection GetEventHubs() /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -372,7 +372,7 @@ public virtual async Task> GetEventHubAsync(string ev /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual EventHubsSchemaGroupCollection GetEventHubsSchemaGroups() /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> GetEventHubsSc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -479,7 +479,7 @@ public virtual EventHubsApplicationGroupCollection GetEventHubsApplicationGroups /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -510,7 +510,7 @@ public virtual async Task> GetEventH /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -541,7 +541,7 @@ public virtual Response GetEventHubsApplicati /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -581,7 +581,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -621,7 +621,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -663,7 +663,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -705,7 +705,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -747,7 +747,7 @@ public virtual async Task> UpdateAsync(Even /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -776,98 +776,6 @@ public virtual Response Update(EventHubsNamespaceDat } } - /// - /// GeoDR Failover - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/failover - /// - /// - /// Operation Id - /// Namespaces_Failover - /// - /// - /// Default Api Version - /// 2023-01-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Parameters for updating a namespace resource. - /// The cancellation token to use. - /// is null. - public virtual async Task FailoverAsync(WaitUntil waitUntil, NamespaceFailOverContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Failover"); - scope.Start(); - try - { - var response = await _eventHubsNamespaceNamespacesRestClient.FailoverAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(_eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, _eventHubsNamespaceNamespacesRestClient.CreateFailoverRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// GeoDR Failover - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/failover - /// - /// - /// Operation Id - /// Namespaces_Failover - /// - /// - /// Default Api Version - /// 2023-01-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Parameters for updating a namespace resource. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation Failover(WaitUntil waitUntil, NamespaceFailOverContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Failover"); - scope.Start(); - try - { - var response = _eventHubsNamespaceNamespacesRestClient.Failover(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new EventHubsArmOperation(_eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, _eventHubsNamespaceNamespacesRestClient.CreateFailoverRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Gets lists of resources that supports Privatelinks. /// @@ -881,7 +789,7 @@ public virtual ArmOperation Failover(WaitUntil waitUntil, NamespaceFailOverConte /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -906,7 +814,7 @@ public virtual AsyncPageable GetPrivateLinkRes /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -931,7 +839,7 @@ public virtual Pageable GetPrivateLinkResource /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -956,7 +864,7 @@ public virtual AsyncPageable Get /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -981,7 +889,7 @@ public virtual Pageable GetNetwo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -1024,7 +932,7 @@ public virtual async Task CreateOrUpdateNetworkSecurityPerimeterCo /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -1067,7 +975,7 @@ public virtual ArmOperation CreateOrUpdateNetworkSecurityPerimeterConfiguration( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -1105,7 +1013,7 @@ public virtual async Task> CheckEventH /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// @@ -1143,7 +1051,7 @@ public virtual Response CheckEventHubsDisasterR /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -1205,7 +1113,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -1267,7 +1175,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -1324,7 +1232,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -1381,7 +1289,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -1441,7 +1349,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs index 80c7dd83bab1a..b5ffb6926497b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs index 00499ec8f7aaf..344aa420ebd4f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string p /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs index 09c47d2201412..e4ad596934b85 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs index 84fc65e700988..43a01309977f8 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string schemaGroupName /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? skip /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? skip = null, i /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string schemaGroupName, Ca /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string schemaGroupName, CancellationToken c /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs index 2ec9d3314aff0..7276406233308 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/EventHubsExtensions.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/EventHubsExtensions.cs index a44018c248b06..1521df65a22a7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/EventHubsExtensions.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/EventHubsExtensions.cs @@ -291,7 +291,7 @@ public static EventHubsClusterCollection GetEventHubsClusters(this ResourceGroup /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -329,7 +329,7 @@ public static async Task> GetEventHubsCluster /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -384,7 +384,7 @@ public static EventHubsNamespaceCollection GetEventHubsNamespaces(this ResourceG /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -422,7 +422,7 @@ public static async Task> GetEventHubsNames /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -460,7 +460,7 @@ public static Response GetEventHubsNamespace(this Re /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -496,7 +496,7 @@ public static AsyncPageable GetAvailableClusterRegionClustersA /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -532,7 +532,7 @@ public static Pageable GetAvailableClusterRegionClusters(this /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -568,7 +568,7 @@ public static AsyncPageable GetEventHubsClustersAsync( /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -604,7 +604,7 @@ public static Pageable GetEventHubsClusters(this Subsc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -640,7 +640,7 @@ public static AsyncPageable GetEventHubsNamespacesAs /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -676,7 +676,7 @@ public static Pageable GetEventHubsNamespaces(this S /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -712,7 +712,7 @@ public static async Task> CheckEventHu /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsResourceGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsResourceGroupResource.cs index 78c697e7fa619..4ba844c51bd7a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsResourceGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual EventHubsClusterCollection GetEventHubsClusters() /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetEventHubsCluste /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -122,7 +122,7 @@ public virtual EventHubsNamespaceCollection GetEventHubsNamespaces() /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -153,7 +153,7 @@ public virtual async Task> GetEventHubsName /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsSubscriptionResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsSubscriptionResource.cs index 926db24662751..fda1f9c8bf237 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsSubscriptionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsSubscriptionResource.cs @@ -59,7 +59,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -88,7 +88,7 @@ public virtual AsyncPageable GetAvailableClusterRegionClusters /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual Pageable GetAvailableClusterRegionClusters(Canc /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual AsyncPageable GetEventHubsClustersAsync /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Pageable GetEventHubsClusters(Cancellat /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual AsyncPageable GetEventHubsNamespacesA /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -237,7 +237,7 @@ public virtual Pageable GetEventHubsNamespaces(Cance /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> CheckEventH /// /// /// Default Api Version - /// 2023-01-01-preview + /// 2024-01-01 /// /// /// Resource diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.Serialization.cs deleted file mode 100644 index 146de7fa781f2..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.EventHubs.Models -{ - public partial class NamespaceFailOverContent : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NamespaceFailOverContent)} does not support writing '{format}' format."); - } - - writer.WriteStartObject(); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(PrimaryLocation)) - { - writer.WritePropertyName("primaryLocation"u8); - writer.WriteStringValue(PrimaryLocation.Value); - } - if (Optional.IsDefined(MaximumGracePeriodInMins)) - { - writer.WritePropertyName("maximumGracePeriodInMins"u8); - writer.WriteNumberValue(MaximumGracePeriodInMins.Value); - } - writer.WriteEndObject(); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - writer.WriteEndObject(); - } - - NamespaceFailOverContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NamespaceFailOverContent)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNamespaceFailOverContent(document.RootElement, options); - } - - internal static NamespaceFailOverContent DeserializeNamespaceFailOverContent(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - AzureLocation? primaryLocation = default; - int? maximumGracePeriodInMins = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("primaryLocation"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - primaryLocation = new AzureLocation(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("maximumGracePeriodInMins"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - maximumGracePeriodInMins = property0.Value.GetInt32(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NamespaceFailOverContent(primaryLocation, maximumGracePeriodInMins, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(NamespaceFailOverContent)} does not support writing '{options.Format}' format."); - } - } - - NamespaceFailOverContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeNamespaceFailOverContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NamespaceFailOverContent)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.cs deleted file mode 100644 index 98c711b015aa6..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceFailOverContent.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.EventHubs.Models -{ - /// The NamespaceFailOverContent. - public partial class NamespaceFailOverContent - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NamespaceFailOverContent() - { - } - - /// Initializes a new instance of . - /// Query parameter for the new primary location after failover. - /// Maximum time duration allowed complete data replication from primary to secondary. Use maximumGracePeriodInMins = 0: For Unplanned Geo-Failover, which switches the role between primary and secondary immediately. The data that is not being replicated yet will be discarded. Use maximumGracePeriodInMins > 0: For Planned Geo-Failover/DR Drill, continue replicating data until grace period expires. Any data that is not replicated during the grace period will be discarded. During the replication the namespace stops accepting any new publishing requests. - /// Keeps track of any properties unknown to the library. - internal NamespaceFailOverContent(AzureLocation? primaryLocation, int? maximumGracePeriodInMins, IDictionary serializedAdditionalRawData) - { - PrimaryLocation = primaryLocation; - MaximumGracePeriodInMins = maximumGracePeriodInMins; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Query parameter for the new primary location after failover. - [WirePath("properties.primaryLocation")] - public AzureLocation? PrimaryLocation { get; set; } - /// Maximum time duration allowed complete data replication from primary to secondary. Use maximumGracePeriodInMins = 0: For Unplanned Geo-Failover, which switches the role between primary and secondary immediately. The data that is not being replicated yet will be discarded. Use maximumGracePeriodInMins > 0: For Planned Geo-Failover/DR Drill, continue replicating data until grace period expires. Any data that is not replicated during the grace period will be discarded. During the replication the namespace stops accepting any new publishing requests. - [WirePath("properties.maximumGracePeriodInMins")] - public int? MaximumGracePeriodInMins { get; set; } - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDRRoleType.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDRRoleType.cs deleted file mode 100644 index ac17ebbb4fc56..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDRRoleType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.EventHubs.Models -{ - /// GeoDR Role Types. - public readonly partial struct NamespaceGeoDRRoleType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public NamespaceGeoDRRoleType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string PrimaryValue = "Primary"; - private const string SecondaryValue = "Secondary"; - - /// Primary. - public static NamespaceGeoDRRoleType Primary { get; } = new NamespaceGeoDRRoleType(PrimaryValue); - /// Secondary. - public static NamespaceGeoDRRoleType Secondary { get; } = new NamespaceGeoDRRoleType(SecondaryValue); - /// Determines if two values are the same. - public static bool operator ==(NamespaceGeoDRRoleType left, NamespaceGeoDRRoleType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(NamespaceGeoDRRoleType left, NamespaceGeoDRRoleType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator NamespaceGeoDRRoleType(string value) => new NamespaceGeoDRRoleType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is NamespaceGeoDRRoleType other && Equals(other); - /// - public bool Equals(NamespaceGeoDRRoleType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.Serialization.cs deleted file mode 100644 index fa687e4dd374c..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.Serialization.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.EventHubs.Models -{ - public partial class NamespaceGeoDataReplicationProperties : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NamespaceGeoDataReplicationProperties)} does not support writing '{format}' format."); - } - - writer.WriteStartObject(); - if (Optional.IsDefined(MaxReplicationLagDurationInSeconds)) - { - writer.WritePropertyName("maxReplicationLagDurationInSeconds"u8); - writer.WriteNumberValue(MaxReplicationLagDurationInSeconds.Value); - } - if (Optional.IsCollectionDefined(Locations)) - { - writer.WritePropertyName("locations"u8); - writer.WriteStartArray(); - foreach (var item in Locations) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - writer.WriteEndObject(); - } - - NamespaceGeoDataReplicationProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NamespaceGeoDataReplicationProperties)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNamespaceGeoDataReplicationProperties(document.RootElement, options); - } - - internal static NamespaceGeoDataReplicationProperties DeserializeNamespaceGeoDataReplicationProperties(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - int? maxReplicationLagDurationInSeconds = default; - IList locations = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("maxReplicationLagDurationInSeconds"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - maxReplicationLagDurationInSeconds = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("locations"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(NamespaceReplicaLocation.DeserializeNamespaceReplicaLocation(item, options)); - } - locations = array; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NamespaceGeoDataReplicationProperties(maxReplicationLagDurationInSeconds, locations ?? new ChangeTrackingList(), serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(MaxReplicationLagDurationInSeconds), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" maxReplicationLagDurationInSeconds: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(MaxReplicationLagDurationInSeconds)) - { - builder.Append(" maxReplicationLagDurationInSeconds: "); - builder.AppendLine($"{MaxReplicationLagDurationInSeconds.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Locations), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" locations: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Locations)) - { - if (Locations.Any()) - { - builder.Append(" locations: "); - builder.AppendLine("["); - foreach (var item in Locations) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " locations: "); - } - builder.AppendLine(" ]"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(NamespaceGeoDataReplicationProperties)} does not support writing '{options.Format}' format."); - } - } - - NamespaceGeoDataReplicationProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeNamespaceGeoDataReplicationProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NamespaceGeoDataReplicationProperties)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs deleted file mode 100644 index 4497144cdc5a3..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceGeoDataReplicationProperties.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.EventHubs.Models -{ - /// GeoDR Replication properties. - public partial class NamespaceGeoDataReplicationProperties - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NamespaceGeoDataReplicationProperties() - { - Locations = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The maximum acceptable lag for data replication operations from the primary replica to a quorum of secondary replicas. When the lag exceeds the configured amount, operations on the primary replica will be failed. The allowed values are 0 and 5 minutes to 1 day. - /// A list of regions where replicas of the namespace are maintained. - /// Keeps track of any properties unknown to the library. - internal NamespaceGeoDataReplicationProperties(int? maxReplicationLagDurationInSeconds, IList locations, IDictionary serializedAdditionalRawData) - { - MaxReplicationLagDurationInSeconds = maxReplicationLagDurationInSeconds; - Locations = locations; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The maximum acceptable lag for data replication operations from the primary replica to a quorum of secondary replicas. When the lag exceeds the configured amount, operations on the primary replica will be failed. The allowed values are 0 and 5 minutes to 1 day. - [WirePath("maxReplicationLagDurationInSeconds")] - public int? MaxReplicationLagDurationInSeconds { get; set; } - /// A list of regions where replicas of the namespace are maintained. - [WirePath("locations")] - public IList Locations { get; } - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.Serialization.cs deleted file mode 100644 index 6a6ea604c668d..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.Serialization.cs +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.EventHubs.Models -{ - public partial class NamespaceReplicaLocation : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NamespaceReplicaLocation)} does not support writing '{format}' format."); - } - - writer.WriteStartObject(); - if (Optional.IsDefined(LocationName)) - { - writer.WritePropertyName("locationName"u8); - writer.WriteStringValue(LocationName); - } - if (Optional.IsDefined(RoleType)) - { - writer.WritePropertyName("roleType"u8); - writer.WriteStringValue(RoleType.Value.ToString()); - } - if (Optional.IsDefined(ClusterArmId)) - { - writer.WritePropertyName("clusterArmId"u8); - writer.WriteStringValue(ClusterArmId); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - writer.WriteEndObject(); - } - - NamespaceReplicaLocation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NamespaceReplicaLocation)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNamespaceReplicaLocation(document.RootElement, options); - } - - internal static NamespaceReplicaLocation DeserializeNamespaceReplicaLocation(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string locationName = default; - NamespaceGeoDRRoleType? roleType = default; - ResourceIdentifier clusterArmId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("locationName"u8)) - { - locationName = property.Value.GetString(); - continue; - } - if (property.NameEquals("roleType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - roleType = new NamespaceGeoDRRoleType(property.Value.GetString()); - continue; - } - if (property.NameEquals("clusterArmId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - clusterArmId = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NamespaceReplicaLocation(locationName, roleType, clusterArmId, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LocationName), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" locationName: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(LocationName)) - { - builder.Append(" locationName: "); - if (LocationName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{LocationName}'''"); - } - else - { - builder.AppendLine($"'{LocationName}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RoleType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" roleType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(RoleType)) - { - builder.Append(" roleType: "); - builder.AppendLine($"'{RoleType.Value.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ClusterArmId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" clusterArmId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ClusterArmId)) - { - builder.Append(" clusterArmId: "); - builder.AppendLine($"'{ClusterArmId.ToString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(NamespaceReplicaLocation)} does not support writing '{options.Format}' format."); - } - } - - NamespaceReplicaLocation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeNamespaceReplicaLocation(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NamespaceReplicaLocation)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs deleted file mode 100644 index e9beca5932e11..0000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NamespaceReplicaLocation.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.EventHubs.Models -{ - /// Namespace replication properties. - public partial class NamespaceReplicaLocation - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public NamespaceReplicaLocation() - { - } - - /// Initializes a new instance of . - /// Azure regions where a replica of the namespace is maintained. - /// GeoDR Role Types. - /// Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster. - /// Keeps track of any properties unknown to the library. - internal NamespaceReplicaLocation(string locationName, NamespaceGeoDRRoleType? roleType, ResourceIdentifier clusterArmId, IDictionary serializedAdditionalRawData) - { - LocationName = locationName; - RoleType = roleType; - ClusterArmId = clusterArmId; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Azure regions where a replica of the namespace is maintained. - [WirePath("locationName")] - public string LocationName { get; set; } - /// GeoDR Role Types. - [WirePath("roleType")] - public NamespaceGeoDRRoleType? RoleType { get; set; } - /// Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster. - [WirePath("clusterArmId")] - public ResourceIdentifier ClusterArmId { get; set; } - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs index c8f1569753cf2..dc037a0e5ce32 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGroupRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs index 4fda913d7b5ee..232eec02c74dc 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs @@ -32,7 +32,7 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs index 40f7742ea791a..c8f8f3a4ee594 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public ConfigurationRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs index 20bf7bfd89bff..97dfb5ee139f2 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs @@ -32,7 +32,7 @@ public ConsumerGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs index 7a1cd615a721f..2cc5fd1461810 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs @@ -32,7 +32,7 @@ public DisasterRecoveryConfigsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs index 595fea130560d..790f708b08024 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs @@ -32,7 +32,7 @@ public EventHubsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs index d4204cf743cf6..a5acac56b3855 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -32,7 +32,7 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -582,98 +582,6 @@ public Response Update(string subscriptionId, string res } } - internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, NamespaceFailOverContent content) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); - uri.AppendPath(namespaceName, true); - uri.AppendPath("/failover", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string namespaceName, NamespaceFailOverContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); - uri.AppendPath(namespaceName, true); - uri.AppendPath("/failover", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// GeoDR Failover. - /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Name of the resource group within the azure subscription. - /// The Namespace name. - /// Parameters for updating a namespace resource. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task FailoverAsync(string subscriptionId, string resourceGroupName, string namespaceName, NamespaceFailOverContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateFailoverRequest(subscriptionId, resourceGroupName, namespaceName, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// GeoDR Failover. - /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Name of the resource group within the azure subscription. - /// The Namespace name. - /// Parameters for updating a namespace resource. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Failover(string subscriptionId, string resourceGroupName, string namespaceName, NamespaceFailOverContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateFailoverRequest(subscriptionId, resourceGroupName, namespaceName, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - internal RequestUriBuilder CreateCreateOrUpdateNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNetworkRuleSetData data) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs index 42c38073f9049..26dab8b08f98f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public NetworkSecurityPerimeterConfigurationRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs index cd99f6063bbe3..99ce22affaeac 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs @@ -30,7 +30,7 @@ public NetworkSecurityPerimeterConfigurationsRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index d2e5e9e084f59..ca327f95a90c6 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index cddc45ba47ef5..42e0eb4650f22 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs index 6bf550918677c..5b7f28525dd62 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs @@ -32,7 +32,7 @@ public SchemaRegistryRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md index 757a5b5a8a263..313330e1566bb 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md @@ -7,8 +7,8 @@ azure-arm: true csharp: true namespace: Azure.ResourceManager.EventHubs output-folder: $(this-folder)/Generated -require: https://github.com/Azure/azure-rest-api-specs/blob/01ae995b35fa5d29433d57bcc0ff508ae8f4bbcc/specification/eventhub/resource-manager/readme.md -#tag: package-2023-01-preview +require: https://github.com/Azure/azure-rest-api-specs/blob/412364b282e52b50eadc3cd88d56d283b6c8712a/specification/eventhub/resource-manager/readme.md +tag: package-2024-01 clear-output-folder: true sample-gen: output-folder: $(this-folder)/../samples/Generated