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 b8036227fbc8..354a97cae658 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 @@ -1,5 +1,149 @@ namespace Azure.ResourceManager.EventHubs { + public partial class ClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ClusterCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.EventHubs.ClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.EventHubs.ClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ClusterData : Azure.ResourceManager.Models.TrackedResourceData + { + public ClusterData(Azure.Core.AzureLocation location) { } + public string CreatedAt { get { throw null; } } + public string MetricId { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.ClusterSku Sku { get { throw null; } set { } } + public string Status { get { throw null; } } + public bool? SupportsScaling { get { throw null; } set { } } + public string UpdatedAt { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.UpgradePreferences UpgradePreferences { get { throw null; } set { } } + } + public partial class ClusterResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ClusterResource() { } + public virtual Azure.ResourceManager.EventHubs.ClusterData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { 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.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 GetConfiguration(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetConfigurationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetNamespaces(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetNamespacesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response PatchConfiguration(Azure.ResourceManager.EventHubs.Models.ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PatchConfigurationAsync(Azure.ResourceManager.EventHubs.Models.ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response TriggerUpgradePost(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task TriggerUpgradePostAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.ClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.ClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class EHNamespaceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected EHNamespaceCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.EventHubs.EHNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.EventHubs.EHNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class EHNamespaceData : Azure.ResourceManager.Models.TrackedResourceData + { + public EHNamespaceData(Azure.Core.AzureLocation location) { } + public string AlternateName { get { throw null; } set { } } + public string ClusterArmId { get { throw null; } set { } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public bool? DisableLocalAuth { get { throw null; } set { } } + public Azure.ResourceManager.EventHubs.Models.Encryption Encryption { 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 { } } + public int? MaximumThroughputUnits { get { throw null; } set { } } + public string MetricId { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion? MinimumTlsVersion { get { throw null; } set { } } + public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } } + public string ProvisioningState { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public string ServiceBusEndpoint { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.EventHubsSku Sku { get { throw null; } set { } } + public string Status { get { throw null; } } + public System.DateTimeOffset? UpdatedOn { get { throw null; } } + public bool? ZoneRedundant { get { throw null; } set { } } + } + public partial class EHNamespaceResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected EHNamespaceResource() { } + public virtual Azure.ResourceManager.EventHubs.EHNamespaceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CheckEventHubsDisasterRecoveryNameAvailability(Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CheckEventHubsDisasterRecoveryNameAvailabilityAsync(Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateNetworkSecurityPerimeterConfiguration(Azure.WaitUntil waitUntil, string resourceAssociationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateNetworkSecurityPerimeterConfigurationAsync(Azure.WaitUntil waitUntil, string resourceAssociationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + 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.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; } + public virtual System.Threading.Tasks.Task> GetEventHubAsync(string eventHubName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EventHubCollection GetEventHubs() { throw null; } + public virtual Azure.Response GetEventHubsApplicationGroup(string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEventHubsApplicationGroupAsync(string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EventHubsApplicationGroupCollection GetEventHubsApplicationGroups() { throw null; } + public virtual Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryCollection GetEventHubsDisasterRecoveries() { throw null; } + public virtual Azure.Response GetEventHubsDisasterRecovery(string alias, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEventHubsDisasterRecoveryAsync(string alias, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetEventHubsNamespaceAuthorizationRule(string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEventHubsNamespaceAuthorizationRuleAsync(string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleCollection GetEventHubsNamespaceAuthorizationRules() { throw null; } + public virtual Azure.Response GetEventHubsPrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEventHubsPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EventHubsPrivateEndpointConnectionCollection GetEventHubsPrivateEndpointConnections() { throw null; } + public virtual Azure.Response GetEventHubsSchemaGroup(string schemaGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEventHubsSchemaGroupAsync(string schemaGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EventHubsSchemaGroupCollection GetEventHubsSchemaGroups() { throw null; } + public virtual Azure.ResourceManager.EventHubs.NetworkRuleSetResource GetNetworkRuleSet() { throw null; } + public virtual Azure.Pageable GetNetworkSecurityPerimeterConfigurations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetNetworkSecurityPerimeterConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetPrivateLinkResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.EventHubs.EHNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.EventHubs.EHNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class EventHubAuthorizationRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected EventHubAuthorizationRuleCollection() { } @@ -132,59 +276,6 @@ public EventHubsAuthorizationRuleData() { } public Azure.Core.AzureLocation? Location { get { throw null; } } public System.Collections.Generic.IList Rights { get { throw null; } } } - public partial class EventHubsClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected EventHubsClusterCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.EventHubs.EventHubsClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.EventHubs.EventHubsClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class EventHubsClusterData : Azure.ResourceManager.Models.TrackedResourceData - { - public EventHubsClusterData(Azure.Core.AzureLocation location) { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public string MetricId { get { throw null; } } - public Azure.ResourceManager.EventHubs.Models.EventHubsClusterSku Sku { get { throw null; } set { } } - public string Status { get { throw null; } } - public bool? SupportsScaling { get { throw null; } set { } } - public System.DateTimeOffset? UpdatedOn { get { throw null; } } - } - public partial class EventHubsClusterResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected EventHubsClusterResource() { } - public virtual Azure.ResourceManager.EventHubs.EventHubsClusterData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { 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.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 GetConfiguration(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConfigurationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetNamespaces(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetNamespacesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response PatchConfiguration(Azure.ResourceManager.EventHubs.Models.ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PatchConfigurationAsync(Azure.ResourceManager.EventHubs.Models.ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsClusterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class EventHubsConsumerGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected EventHubsConsumerGroupCollection() { } @@ -305,28 +396,28 @@ public static partial class EventHubsExtensions public static System.Threading.Tasks.Task> CheckEventHubsNamespaceNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetAvailableClusterRegionClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetAvailableClusterRegionClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.EventHubs.ClusterResource GetClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.EventHubs.ClusterCollection GetClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetEHNamespace(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetEHNamespaceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.EventHubs.EHNamespaceResource GetEHNamespaceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.EventHubs.EHNamespaceCollection GetEHNamespaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetEHNamespaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetEHNamespacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubAuthorizationRuleResource GetEventHubAuthorizationRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubResource GetEventHubResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsApplicationGroupResource GetEventHubsApplicationGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetEventHubsCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetEventHubsClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsClusterResource GetEventHubsClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsClusterCollection GetEventHubsClusters(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetEventHubsClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetEventHubsClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsConsumerGroupResource GetEventHubsConsumerGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryAuthorizationRuleResource GetEventHubsDisasterRecoveryAuthorizationRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryResource GetEventHubsDisasterRecoveryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetEventHubsNamespace(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetEventHubsNamespaceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleResource GetEventHubsNamespaceAuthorizationRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsNamespaceResource GetEventHubsNamespaceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsNamespaceCollection GetEventHubsNamespaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetEventHubsNamespaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetEventHubsNamespacesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSetResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsPrivateEndpointConnectionResource GetEventHubsPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsSchemaGroupResource GetEventHubsSchemaGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.EventHubs.NetworkRuleSetResource GetNetworkRuleSetResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } } public partial class EventHubsNamespaceAuthorizationRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -363,115 +454,6 @@ protected EventHubsNamespaceAuthorizationRuleResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsAuthorizationRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsAuthorizationRuleData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class EventHubsNamespaceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected EventHubsNamespaceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.EventHubs.EventHubsNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.EventHubs.EventHubsNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class EventHubsNamespaceData : Azure.ResourceManager.Models.TrackedResourceData - { - public EventHubsNamespaceData(Azure.Core.AzureLocation location) { } - public string AlternateName { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier ClusterArmId { get { throw null; } set { } } - 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.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public bool? IsAutoInflateEnabled { get { throw null; } set { } } - public bool? KafkaEnabled { get { throw null; } set { } } - public int? MaximumThroughputUnits { get { throw null; } set { } } - public string MetricId { get { throw null; } } - public Azure.ResourceManager.EventHubs.Models.EventHubsTlsVersion? MinimumTlsVersion { get { throw null; } set { } } - public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } } - public string ProvisioningState { get { throw null; } } - public Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } - public string ServiceBusEndpoint { get { throw null; } } - public Azure.ResourceManager.EventHubs.Models.EventHubsSku Sku { get { throw null; } set { } } - public string Status { get { throw null; } } - public System.DateTimeOffset? UpdatedOn { get { throw null; } } - public bool? ZoneRedundant { get { throw null; } set { } } - } - public partial class EventHubsNamespaceResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected EventHubsNamespaceResource() { } - public virtual Azure.ResourceManager.EventHubs.EventHubsNamespaceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CheckEventHubsDisasterRecoveryNameAvailability(Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CheckEventHubsDisasterRecoveryNameAvailabilityAsync(Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateNetworkSecurityPerimeterConfiguration(Azure.WaitUntil waitUntil, string resourceAssociationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateNetworkSecurityPerimeterConfigurationAsync(Azure.WaitUntil waitUntil, string resourceAssociationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - 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.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; } - public virtual System.Threading.Tasks.Task> GetEventHubAsync(string eventHubName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubCollection GetEventHubs() { throw null; } - public virtual Azure.Response GetEventHubsApplicationGroup(string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsApplicationGroupAsync(string applicationGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsApplicationGroupCollection GetEventHubsApplicationGroups() { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryCollection GetEventHubsDisasterRecoveries() { throw null; } - public virtual Azure.Response GetEventHubsDisasterRecovery(string alias, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsDisasterRecoveryAsync(string alias, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetEventHubsNamespaceAuthorizationRule(string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsNamespaceAuthorizationRuleAsync(string authorizationRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleCollection GetEventHubsNamespaceAuthorizationRules() { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSet() { throw null; } - public virtual Azure.Response GetEventHubsPrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsPrivateEndpointConnectionCollection GetEventHubsPrivateEndpointConnections() { throw null; } - public virtual Azure.Response GetEventHubsSchemaGroup(string schemaGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsSchemaGroupAsync(string schemaGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsSchemaGroupCollection GetEventHubsSchemaGroups() { throw null; } - public virtual Azure.Pageable GetNetworkSecurityPerimeterConfigurations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetNetworkSecurityPerimeterConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetPrivateLinkResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetPrivateLinkResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.EventHubs.EventHubsNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.EventHubs.EventHubsNamespaceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class EventHubsNetworkRuleSetData : Azure.ResourceManager.Models.ResourceData - { - public EventHubsNetworkRuleSetData() { } - public Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction? DefaultAction { get { throw null; } set { } } - public System.Collections.Generic.IList IPRules { get { throw null; } } - public Azure.Core.AzureLocation? Location { get { throw null; } } - public Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag? PublicNetworkAccess { get { throw null; } set { } } - public bool? TrustedServiceAccessEnabled { get { throw null; } set { } } - public System.Collections.Generic.IList VirtualNetworkRules { get { throw null; } } - } - public partial class EventHubsNetworkRuleSetResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected EventHubsNetworkRuleSetResource() { } - public virtual Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) { 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 partial class EventHubsPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected EventHubsPrivateEndpointConnectionCollection() { } @@ -492,10 +474,10 @@ protected EventHubsPrivateEndpointConnectionCollection() { } public partial class EventHubsPrivateEndpointConnectionData : Azure.ResourceManager.Models.ResourceData { public EventHubsPrivateEndpointConnectionData() { } - public Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } + public Azure.ResourceManager.EventHubs.Models.ConnectionState ConnectionState { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } - public Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } set { } } + public Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState? ProvisioningState { get { throw null; } set { } } } public partial class EventHubsPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource { @@ -553,34 +535,56 @@ protected EventHubsSchemaGroupResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsSchemaGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.EventHubsSchemaGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class NetworkRuleSetData : Azure.ResourceManager.Models.ResourceData + { + public NetworkRuleSetData() { } + public Azure.ResourceManager.EventHubs.Models.DefaultAction? DefaultAction { get { throw null; } set { } } + public System.Collections.Generic.IList IPRules { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag? PublicNetworkAccess { get { throw null; } set { } } + public bool? TrustedServiceAccessEnabled { get { throw null; } set { } } + public System.Collections.Generic.IList VirtualNetworkRules { get { throw null; } } + } + public partial class NetworkRuleSetResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected NetworkRuleSetResource() { } + public virtual Azure.ResourceManager.EventHubs.NetworkRuleSetData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.NetworkRuleSetData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EventHubs.NetworkRuleSetData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) { 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; } + } } namespace Azure.ResourceManager.EventHubs.Mocking { public partial class MockableEventHubsArmClient : Azure.ResourceManager.ArmResource { protected MockableEventHubsArmClient() { } + public virtual Azure.ResourceManager.EventHubs.ClusterResource GetClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EHNamespaceResource GetEHNamespaceResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubAuthorizationRuleResource GetEventHubAuthorizationRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubResource GetEventHubResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsApplicationGroupResource GetEventHubsApplicationGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsClusterResource GetEventHubsClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsConsumerGroupResource GetEventHubsConsumerGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryAuthorizationRuleResource GetEventHubsDisasterRecoveryAuthorizationRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryResource GetEventHubsDisasterRecoveryResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsNamespaceAuthorizationRuleResource GetEventHubsNamespaceAuthorizationRuleResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsNamespaceResource GetEventHubsNamespaceResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSetResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsPrivateEndpointConnectionResource GetEventHubsPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.EventHubs.EventHubsSchemaGroupResource GetEventHubsSchemaGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.EventHubs.NetworkRuleSetResource GetNetworkRuleSetResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableEventHubsResourceGroupResource : Azure.ResourceManager.ArmResource { protected MockableEventHubsResourceGroupResource() { } - public virtual Azure.Response GetEventHubsCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsClusterCollection GetEventHubsClusters() { throw null; } - public virtual Azure.Response GetEventHubsNamespace(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetEventHubsNamespaceAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.EventHubs.EventHubsNamespaceCollection GetEventHubsNamespaces() { throw null; } + public virtual Azure.Response GetCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetClusterAsync(string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.ClusterCollection GetClusters() { throw null; } + public virtual Azure.Response GetEHNamespace(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEHNamespaceAsync(string namespaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.EventHubs.EHNamespaceCollection GetEHNamespaces() { throw null; } } public partial class MockableEventHubsSubscriptionResource : Azure.ResourceManager.ArmResource { @@ -589,10 +593,10 @@ protected MockableEventHubsSubscriptionResource() { } public virtual System.Threading.Tasks.Task> CheckEventHubsNamespaceNameAvailabilityAsync(Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAvailableClusterRegionClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAvailableClusterRegionClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetEventHubsClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetEventHubsClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetEventHubsNamespaces(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetEventHubsNamespacesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetClusters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetClustersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetEHNamespaces(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetEHNamespacesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.EventHubs.Models @@ -600,27 +604,27 @@ 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.ClusterData ClusterData(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.ClusterSku sku = null, string createdAt = null, Azure.ResourceManager.EventHubs.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.EventHubs.Models.ProvisioningState?), string updatedAt = null, string metricId = null, string status = null, bool? supportsScaling = default(bool?), Azure.ResourceManager.EventHubs.Models.UpgradePreferences upgradePreferences = null) { throw null; } + public static Azure.ResourceManager.EventHubs.EHNamespaceData EHNamespaceData(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, string 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.Encryption encryption = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, bool? disableLocalAuth = default(bool?), string alternateName = null) { 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.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; } - public static Azure.ResourceManager.EventHubs.EventHubsClusterData EventHubsClusterData(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.EventHubsClusterSku sku = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string metricId = null, string status = null, bool? supportsScaling = default(bool?)) { throw null; } 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) { 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, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), 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) { 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, string sourceResourceId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile(string name = null, string accessRulesVersion = null, System.Collections.Generic.IEnumerable accessRules = null) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation(string name = null, Azure.ResourceManager.EventHubs.Models.EventHubsResourceAssociationAccessMode? accessMode = default(Azure.ResourceManager.EventHubs.Models.EventHubsResourceAssociationAccessMode?)) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNspAccessRule EventHubsNspAccessRule(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.EventHubsNspAccessRuleProperties properties = null) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsNspAccessRuleProperties EventHubsNspAccessRuleProperties(Azure.ResourceManager.EventHubs.Models.EventHubsNspAccessRuleDirection? direction = default(Azure.ResourceManager.EventHubs.Models.EventHubsNspAccessRuleDirection?), System.Collections.Generic.IEnumerable addressPrefixes = null, System.Collections.Generic.IEnumerable subscriptions = null, System.Collections.Generic.IEnumerable networkSecurityPerimeters = null, System.Collections.Generic.IEnumerable fullyQualifiedDomainNames = null) { throw null; } - public static Azure.ResourceManager.EventHubs.EventHubsPrivateEndpointConnectionData EventHubsPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkResourceData EventHubsPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.EventHubs.EventHubsPrivateEndpointConnectionData EventHubsPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.EventHubs.Models.ConnectionState connectionState = null, Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState? provisioningState = default(Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkResource EventHubsPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsProvisioningIssue EventHubsProvisioningIssue(string name = null, Azure.ResourceManager.EventHubs.Models.EventHubsProvisioningIssueProperties properties = null) { throw null; } public static Azure.ResourceManager.EventHubs.Models.EventHubsProvisioningIssueProperties EventHubsProvisioningIssueProperties(string issueType = null, string description = null) { throw null; } public static Azure.ResourceManager.EventHubs.EventHubsSchemaGroupData EventHubsSchemaGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? updatedAtUtc = default(System.DateTimeOffset?), System.DateTimeOffset? createdAtUtc = default(System.DateTimeOffset?), Azure.ETag? eTag = default(Azure.ETag?), System.Collections.Generic.IDictionary groupProperties = null, Azure.ResourceManager.EventHubs.Models.EventHubsSchemaCompatibility? schemaCompatibility = default(Azure.ResourceManager.EventHubs.Models.EventHubsSchemaCompatibility?), Azure.ResourceManager.EventHubs.Models.EventHubsSchemaType? schemaType = default(Azure.ResourceManager.EventHubs.Models.EventHubsSchemaType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.EventHubs.NetworkRuleSetData NetworkRuleSetData(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.DefaultAction? defaultAction = default(Azure.ResourceManager.EventHubs.Models.DefaultAction?), System.Collections.Generic.IEnumerable virtualNetworkRules = null, System.Collections.Generic.IEnumerable ipRules = null, Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag? publicNetworkAccess = default(Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } } public partial class AvailableCluster { @@ -637,13 +641,24 @@ public CaptureDescription() { } public int? SizeLimitInBytes { get { throw null; } set { } } public bool? SkipEmptyArchives { get { throw null; } set { } } } + public partial class CaptureIdentity + { + public CaptureIdentity() { } + public Azure.ResourceManager.EventHubs.Models.CaptureIdentityType? IdentityType { get { throw null; } set { } } + public string UserAssignedIdentity { get { throw null; } set { } } + } + public enum CaptureIdentityType + { + SystemAssigned = 0, + UserAssigned = 1, + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CleanupPolicyRetentionDescription : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; public CleanupPolicyRetentionDescription(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.CleanupPolicyRetentionDescription Compaction { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.CleanupPolicyRetentionDescription Compact { get { throw null; } } public static Azure.ResourceManager.EventHubs.Models.CleanupPolicyRetentionDescription Delete { get { throw null; } } public bool Equals(Azure.ResourceManager.EventHubs.Models.CleanupPolicyRetentionDescription other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -660,11 +675,87 @@ public partial class ClusterQuotaConfigurationProperties public ClusterQuotaConfigurationProperties() { } public System.Collections.Generic.IDictionary Settings { get { throw null; } } } + public partial class ClusterSku + { + public ClusterSku(Azure.ResourceManager.EventHubs.Models.ClusterSkuName name) { } + public int? Capacity { get { throw null; } set { } } + public Azure.ResourceManager.EventHubs.Models.ClusterSkuName Name { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ClusterSkuName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ClusterSkuName(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.ClusterSkuName Dedicated { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.ClusterSkuName 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.ClusterSkuName left, Azure.ResourceManager.EventHubs.Models.ClusterSkuName right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.ClusterSkuName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.ClusterSkuName left, Azure.ResourceManager.EventHubs.Models.ClusterSkuName right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ConnectionState + { + public ConnectionState() { } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus? Status { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DefaultAction : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DefaultAction(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.DefaultAction Allow { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.DefaultAction Deny { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.DefaultAction 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.DefaultAction left, Azure.ResourceManager.EventHubs.Models.DefaultAction right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.DefaultAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.DefaultAction left, Azure.ResourceManager.EventHubs.Models.DefaultAction right) { throw null; } + public override string ToString() { throw null; } + } public enum EncodingCaptureDescription { Avro = 0, AvroDeflate = 1, } + public partial class Encryption + { + public Encryption() { } + public Azure.ResourceManager.EventHubs.Models.EventHubsKeySource? KeySource { get { throw null; } set { } } + public System.Collections.Generic.IList KeyVaultProperties { get { throw null; } } + public bool? RequireInfrastructureEncryption { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EndPointProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EndPointProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState 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.EndPointProvisioningState left, Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState left, Azure.ResourceManager.EventHubs.Models.EndPointProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } public partial class EventHubDestination { public EventHubDestination() { } @@ -673,6 +764,7 @@ public EventHubDestination() { } public string DataLakeAccountName { get { throw null; } set { } } public string DataLakeFolderPath { get { throw null; } set { } } public System.Guid? DataLakeSubscriptionId { get { throw null; } set { } } + public Azure.ResourceManager.EventHubs.Models.CaptureIdentity Identity { get { throw null; } set { } } public string Name { get { throw null; } set { } } public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } set { } } } @@ -741,29 +833,6 @@ public abstract partial class EventHubsApplicationGroupPolicy protected EventHubsApplicationGroupPolicy(string name) { } public string Name { get { throw null; } set { } } } - public partial class EventHubsClusterSku - { - public EventHubsClusterSku(Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName name) { } - public int? Capacity { get { throw null; } set { } } - public Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName Name { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventHubsClusterSkuName : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EventHubsClusterSkuName(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName Dedicated { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName 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.EventHubsClusterSkuName left, Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName left, Azure.ResourceManager.EventHubs.Models.EventHubsClusterSkuName right) { throw null; } - public override string ToString() { throw null; } - } public enum EventHubsDisasterRecoveryProvisioningState { Accepted = 0, @@ -776,13 +845,6 @@ public enum EventHubsDisasterRecoveryRole PrimaryNotReplicating = 1, Secondary = 2, } - public partial class EventHubsEncryption - { - public EventHubsEncryption() { } - public Azure.ResourceManager.EventHubs.Models.EventHubsKeySource? KeySource { get { throw null; } set { } } - public System.Collections.Generic.IList KeyVaultProperties { get { throw null; } } - public bool? RequireInfrastructureEncryption { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EventHubsKeySource : System.IEquatable { @@ -800,14 +862,6 @@ public EventHubsEncryption() { } public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsKeySource left, Azure.ResourceManager.EventHubs.Models.EventHubsKeySource right) { throw null; } public override string ToString() { throw null; } } - public partial class EventHubsKeyVaultProperties - { - public EventHubsKeyVaultProperties() { } - public string KeyName { get { throw null; } set { } } - public System.Uri KeyVaultUri { get { throw null; } set { } } - public string KeyVersion { get { throw null; } set { } } - public string UserAssignedIdentity { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EventHubsMetricId : System.IEquatable { @@ -849,53 +903,6 @@ public enum EventHubsNameUnavailableReason NameInLockdown = 4, TooManyNamespaceInCurrentSubscription = 5, } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventHubsNetworkRuleIPAction : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EventHubsNetworkRuleIPAction(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction Allow { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction 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.EventHubsNetworkRuleIPAction left, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction left, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventHubsNetworkRuleSetDefaultAction : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EventHubsNetworkRuleSetDefaultAction(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction Allow { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction Deny { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction 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.EventHubsNetworkRuleSetDefaultAction left, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction left, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction right) { throw null; } - public override string ToString() { throw null; } - } - public partial class EventHubsNetworkRuleSetIPRules - { - public EventHubsNetworkRuleSetIPRules() { } - public Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleIPAction? Action { get { throw null; } set { } } - public string IPMask { get { throw null; } set { } } - } - public partial class EventHubsNetworkRuleSetVirtualNetworkRules - { - public EventHubsNetworkRuleSetVirtualNetworkRules() { } - public bool? IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } - } public partial class EventHubsNetworkSecurityPerimeter { internal EventHubsNetworkSecurityPerimeter() { } @@ -903,14 +910,19 @@ internal EventHubsNetworkSecurityPerimeter() { } public Azure.Core.AzureLocation? Location { get { throw null; } } public string PerimeterGuid { get { throw null; } } } - public partial class EventHubsNetworkSecurityPerimeterConfiguration : Azure.ResourceManager.Models.TrackedResourceData + public partial class EventHubsNetworkSecurityPerimeterConfiguration : Azure.ResourceManager.Models.ResourceData { - public EventHubsNetworkSecurityPerimeterConfiguration(Azure.Core.AzureLocation location) { } + public EventHubsNetworkSecurityPerimeterConfiguration() { } + public System.Collections.Generic.IReadOnlyList ApplicableFeatures { get { throw null; } } + public bool? IsBackingResource { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } public Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeter NetworkSecurityPerimeter { get { throw null; } } + public string ParentAssociationName { get { throw null; } } public Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile Profile { get { throw null; } } public System.Collections.Generic.IList ProvisioningIssues { get { throw null; } } public Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationProvisioningState? ProvisioningState { get { throw null; } set { } } public Azure.ResourceManager.EventHubs.Models.EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation ResourceAssociation { get { throw null; } } + public string SourceResourceId { get { throw null; } } } public partial class EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile { @@ -984,61 +996,13 @@ internal EventHubsNspAccessRuleProperties() { } public System.Collections.Generic.IReadOnlyList NetworkSecurityPerimeters { get { throw null; } } public System.Collections.Generic.IReadOnlyList Subscriptions { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventHubsPrivateEndpointConnectionProvisioningState : System.IEquatable + public partial class EventHubsPrivateLinkResource : Azure.ResourceManager.Models.ResourceData { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EventHubsPrivateEndpointConnectionProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState 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.EventHubsPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.EventHubs.Models.EventHubsPrivateEndpointConnectionProvisioningState right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventHubsPrivateLinkConnectionStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EventHubsPrivateLinkConnectionStatus(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus Approved { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus Disconnected { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus Pending { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus Rejected { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus 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.EventHubsPrivateLinkConnectionStatus left, Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus left, Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class EventHubsPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData - { - internal EventHubsPrivateLinkResourceData() { } + internal EventHubsPrivateLinkResource() { } public string GroupId { get { throw null; } } public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } public System.Collections.Generic.IReadOnlyList RequiredZoneNames { get { throw null; } } } - public partial class EventHubsPrivateLinkServiceConnectionState - { - public EventHubsPrivateLinkServiceConnectionState() { } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.EventHubs.Models.EventHubsPrivateLinkConnectionStatus? Status { get { throw null; } set { } } - } public partial class EventHubsProvisioningIssue { public EventHubsProvisioningIssue() { } @@ -1070,25 +1034,6 @@ internal EventHubsProvisioningIssueProperties() { } public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess left, Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccess right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventHubsPublicNetworkAccessFlag : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public EventHubsPublicNetworkAccessFlag(string value) { throw null; } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag Disabled { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag Enabled { get { throw null; } } - public static Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag SecuredByPerimeter { get { throw null; } } - public bool Equals(Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag 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.EventHubsPublicNetworkAccessFlag left, Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag right) { throw null; } - public static implicit operator Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag left, Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag right) { throw null; } - public override string ToString() { throw null; } - } public partial class EventHubsRegenerateAccessKeyContent { public EventHubsRegenerateAccessKeyContent(Azure.ResourceManager.EventHubs.Models.EventHubsAccessKeyType keyType) { } @@ -1223,6 +1168,106 @@ public EventHubsThrottlingPolicy(string name, long rateLimitThreshold, Azure.Res 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 KeyVaultProperties + { + public KeyVaultProperties() { } + public string KeyName { get { throw null; } set { } } + public System.Uri KeyVaultUri { get { throw null; } set { } } + public string KeyVersion { get { throw null; } set { } } + public string UserAssignedIdentity { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkRuleIPAction : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkRuleIPAction(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction Allow { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction 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.NetworkRuleIPAction left, Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction left, Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction right) { throw null; } + public override string ToString() { throw null; } + } + public partial class NWRuleSetIPRules + { + public NWRuleSetIPRules() { } + public Azure.ResourceManager.EventHubs.Models.NetworkRuleIPAction? Action { get { throw null; } set { } } + public string IPMask { get { throw null; } set { } } + } + public partial class NWRuleSetVirtualNetworkRules + { + public NWRuleSetVirtualNetworkRules() { } + public bool? IgnoreMissingVnetServiceEndpoint { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PrivateLinkConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PrivateLinkConnectionStatus(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus Approved { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus Disconnected { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus Pending { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus 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.PrivateLinkConnectionStatus left, Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus left, Azure.ResourceManager.EventHubs.Models.PrivateLinkConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Active { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Scaling { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.ProvisioningState Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.ProvisioningState 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.ProvisioningState left, Azure.ResourceManager.EventHubs.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.ProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.ProvisioningState left, Azure.ResourceManager.EventHubs.Models.ProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PublicNetworkAccessFlag : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PublicNetworkAccessFlag(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag Disabled { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag Enabled { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag SecuredByPerimeter { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag 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.PublicNetworkAccessFlag left, Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag left, Azure.ResourceManager.EventHubs.Models.PublicNetworkAccessFlag right) { throw null; } + public override string ToString() { throw null; } + } public partial class RetentionDescription { public RetentionDescription() { } @@ -1230,4 +1275,34 @@ public RetentionDescription() { } public long? RetentionTimeInHours { get { throw null; } set { } } public int? TombstoneRetentionTimeInHours { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StartDayOfWeek : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StartDayOfWeek(string value) { throw null; } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Any { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Friday { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Monday { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Saturday { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Sunday { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Thursday { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Tuesday { get { throw null; } } + public static Azure.ResourceManager.EventHubs.Models.StartDayOfWeek Wednesday { get { throw null; } } + public bool Equals(Azure.ResourceManager.EventHubs.Models.StartDayOfWeek 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.StartDayOfWeek left, Azure.ResourceManager.EventHubs.Models.StartDayOfWeek right) { throw null; } + public static implicit operator Azure.ResourceManager.EventHubs.Models.StartDayOfWeek (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.EventHubs.Models.StartDayOfWeek left, Azure.ResourceManager.EventHubs.Models.StartDayOfWeek right) { throw null; } + public override string ToString() { throw null; } + } + public partial class UpgradePreferences + { + public UpgradePreferences() { } + public Azure.ResourceManager.EventHubs.Models.StartDayOfWeek? StartDayOfWeek { get { throw null; } set { } } + public int? StartHourOfDay { get { throw null; } set { } } + } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_ClusterCollection.cs similarity index 79% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_ClusterCollection.cs index 9b38ba196dda..28d96aada962 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_ClusterCollection.cs @@ -17,14 +17,14 @@ namespace Azure.ResourceManager.EventHubs.Samples { - public partial class Sample_EventHubsClusterCollection + public partial class Sample_ClusterCollection { // ClustersListByResourceGroup [NUnit.Framework.Test] [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/2022-10-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 @@ -39,15 +39,15 @@ public async Task GetAll_ClustersListByResourceGroup() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsClusterResource - EventHubsClusterCollection collection = resourceGroupResource.GetEventHubsClusters(); + // get the collection of this ClusterResource + ClusterCollection collection = resourceGroupResource.GetClusters(); // invoke the operation and iterate over the result - await foreach (EventHubsClusterResource item in collection.GetAllAsync()) + await foreach (ClusterResource item in collection.GetAllAsync()) { // the variable item 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 - EventHubsClusterData resourceData = item.Data; + ClusterData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -60,7 +60,7 @@ public async Task GetAll_ClustersListByResourceGroup() [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/2022-10-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 @@ -75,16 +75,16 @@ public async Task Get_ClusterGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsClusterResource - EventHubsClusterCollection collection = resourceGroupResource.GetEventHubsClusters(); + // get the collection of this ClusterResource + ClusterCollection collection = resourceGroupResource.GetClusters(); // invoke the operation string clusterName = "testCluster"; - EventHubsClusterResource result = await collection.GetAsync(clusterName); + ClusterResource result = await collection.GetAsync(clusterName); // 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 - EventHubsClusterData resourceData = result.Data; + ClusterData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -94,7 +94,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/2022-10-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 @@ -109,8 +109,8 @@ public async Task Exists_ClusterGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsClusterResource - EventHubsClusterCollection collection = resourceGroupResource.GetEventHubsClusters(); + // get the collection of this ClusterResource + ClusterCollection collection = resourceGroupResource.GetClusters(); // invoke the operation string clusterName = "testCluster"; @@ -124,7 +124,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/2022-10-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 @@ -139,13 +139,13 @@ public async Task GetIfExists_ClusterGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsClusterResource - EventHubsClusterCollection collection = resourceGroupResource.GetEventHubsClusters(); + // get the collection of this ClusterResource + ClusterCollection collection = resourceGroupResource.GetClusters(); // invoke the operation string clusterName = "testCluster"; - NullableResponse response = await collection.GetIfExistsAsync(clusterName); - EventHubsClusterResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(clusterName); + ClusterResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -155,7 +155,7 @@ public async Task GetIfExists_ClusterGet() { // 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 - EventHubsClusterData resourceData = result.Data; + ClusterData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -166,7 +166,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/2022-10-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 @@ -181,29 +181,34 @@ public async Task CreateOrUpdate_ClusterPut() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsClusterResource - EventHubsClusterCollection collection = resourceGroupResource.GetEventHubsClusters(); + // get the collection of this ClusterResource + ClusterCollection collection = resourceGroupResource.GetClusters(); // invoke the operation string clusterName = "testCluster"; - EventHubsClusterData data = new EventHubsClusterData(new AzureLocation("South Central US")) + ClusterData data = new ClusterData(new AzureLocation("South Central US")) { - Sku = new EventHubsClusterSku(EventHubsClusterSkuName.Dedicated) + Sku = new ClusterSku(ClusterSkuName.Dedicated) { Capacity = 1, }, + UpgradePreferences = new UpgradePreferences() + { + StartDayOfWeek = StartDayOfWeek.Sunday, + StartHourOfDay = 22, + }, Tags = { ["tag1"] = "value1", ["tag2"] = "value2", }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, clusterName, data); - EventHubsClusterResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, clusterName, data); + ClusterResource 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 - EventHubsClusterData resourceData = result.Data; + ClusterData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_ClusterResource.cs similarity index 64% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_ClusterResource.cs index 5deb816ade87..60512e91c8aa 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsClusterResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_ClusterResource.cs @@ -18,14 +18,14 @@ namespace Azure.ResourceManager.EventHubs.Samples { - public partial class Sample_EventHubsClusterResource + public partial class Sample_ClusterResource { // ListAvailableClusters [NUnit.Framework.Test] [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/2022-10-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 @@ -51,9 +51,9 @@ public async Task GetAvailableClusterRegionClusters_ListAvailableClusters() // ClustersListBySubscription [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetEventHubsClusters_ClustersListBySubscription() + public async Task GetClusters_ClustersListBySubscription() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-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 @@ -68,11 +68,11 @@ public async Task GetEventHubsClusters_ClustersListBySubscription() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (EventHubsClusterResource item in subscriptionResource.GetEventHubsClustersAsync()) + await foreach (ClusterResource item in subscriptionResource.GetClustersAsync()) { // the variable item 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 - EventHubsClusterData resourceData = item.Data; + ClusterData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -85,7 +85,7 @@ public async Task GetEventHubsClusters_ClustersListBySubscription() [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/2022-10-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 @@ -93,20 +93,20 @@ public async Task Get_ClusterGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsClusterResource created on azure - // for more information of creating EventHubsClusterResource, please refer to the document of EventHubsClusterResource + // this example assumes you already have this ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "myResourceGroup"; string clusterName = "testCluster"; - ResourceIdentifier eventHubsClusterResourceId = EventHubsClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - EventHubsClusterResource eventHubsCluster = client.GetEventHubsClusterResource(eventHubsClusterResourceId); + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); // invoke the operation - EventHubsClusterResource result = await eventHubsCluster.GetAsync(); + ClusterResource result = await cluster.GetAsync(); // 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 - EventHubsClusterData resourceData = result.Data; + ClusterData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -116,7 +116,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/2022-10-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 @@ -124,29 +124,34 @@ public async Task Update_ClusterPatch() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsClusterResource created on azure - // for more information of creating EventHubsClusterResource, please refer to the document of EventHubsClusterResource + // this example assumes you already have this ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "myResourceGroup"; string clusterName = "testCluster"; - ResourceIdentifier eventHubsClusterResourceId = EventHubsClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - EventHubsClusterResource eventHubsCluster = client.GetEventHubsClusterResource(eventHubsClusterResourceId); + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); // invoke the operation - EventHubsClusterData data = new EventHubsClusterData(new AzureLocation("South Central US")) + ClusterData data = new ClusterData(new AzureLocation("South Central US")) { + UpgradePreferences = new UpgradePreferences() + { + StartDayOfWeek = StartDayOfWeek.Sunday, + StartHourOfDay = 22, + }, Tags = { ["tag3"] = "value3", ["tag4"] = "value4", }, }; - ArmOperation lro = await eventHubsCluster.UpdateAsync(WaitUntil.Completed, data); - EventHubsClusterResource result = lro.Value; + ArmOperation lro = await cluster.UpdateAsync(WaitUntil.Completed, data); + ClusterResource 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 - EventHubsClusterData resourceData = result.Data; + ClusterData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -156,7 +161,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/2022-10-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 @@ -164,16 +169,16 @@ public async Task Delete_ClusterDelete() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsClusterResource created on azure - // for more information of creating EventHubsClusterResource, please refer to the document of EventHubsClusterResource + // this example assumes you already have this ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "myResourceGroup"; string clusterName = "testCluster"; - ResourceIdentifier eventHubsClusterResourceId = EventHubsClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - EventHubsClusterResource eventHubsCluster = client.GetEventHubsClusterResource(eventHubsClusterResourceId); + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); // invoke the operation - await eventHubsCluster.DeleteAsync(WaitUntil.Completed); + await cluster.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -183,7 +188,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/2022-10-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 @@ -191,16 +196,16 @@ public async Task GetNamespaces_ListNamespacesInCluster() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsClusterResource created on azure - // for more information of creating EventHubsClusterResource, please refer to the document of EventHubsClusterResource + // this example assumes you already have this ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "myResourceGroup"; string clusterName = "testCluster"; - ResourceIdentifier eventHubsClusterResourceId = EventHubsClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - EventHubsClusterResource eventHubsCluster = client.GetEventHubsClusterResource(eventHubsClusterResourceId); + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); // invoke the operation and iterate over the result - await foreach (SubResource item in eventHubsCluster.GetNamespacesAsync()) + await foreach (SubResource item in cluster.GetNamespacesAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -208,12 +213,39 @@ public async Task GetNamespaces_ListNamespacesInCluster() Console.WriteLine($"Succeeded"); } + // TriggerUpgradeInCluster + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerUpgradePost_TriggerUpgradeInCluster() + { + // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/examples/Clusters/TriggerUpgradeInCluster.json + // this example is just showing the usage of "Clusters_TriggerUpgradePost" 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 ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource + string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; + string resourceGroupName = "myResourceGroup"; + string clusterName = "testCluster"; + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); + + // invoke the operation + await cluster.TriggerUpgradePostAsync(); + + Console.WriteLine($"Succeeded"); + } + // ClustersQuotasConfigurationPatch [NUnit.Framework.Test] [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/2022-10-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 @@ -221,13 +253,13 @@ public async Task PatchConfiguration_ClustersQuotasConfigurationPatch() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsClusterResource created on azure - // for more information of creating EventHubsClusterResource, please refer to the document of EventHubsClusterResource + // this example assumes you already have this ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "ArunMonocle"; string clusterName = "testCluster"; - ResourceIdentifier eventHubsClusterResourceId = EventHubsClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - EventHubsClusterResource eventHubsCluster = client.GetEventHubsClusterResource(eventHubsClusterResourceId); + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); // invoke the operation ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties = new ClusterQuotaConfigurationProperties() @@ -238,7 +270,7 @@ public async Task PatchConfiguration_ClustersQuotasConfigurationPatch() ["namespaces-per-cluster-quota"] = "200", }, }; - ClusterQuotaConfigurationProperties result = await eventHubsCluster.PatchConfigurationAsync(clusterQuotaConfigurationProperties); + ClusterQuotaConfigurationProperties result = await cluster.PatchConfigurationAsync(clusterQuotaConfigurationProperties); Console.WriteLine($"Succeeded: {result}"); } @@ -248,7 +280,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/2022-10-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 @@ -256,16 +288,16 @@ public async Task GetConfiguration_ClustersQuotasConfigurationGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsClusterResource created on azure - // for more information of creating EventHubsClusterResource, please refer to the document of EventHubsClusterResource + // this example assumes you already have this ClusterResource created on azure + // for more information of creating ClusterResource, please refer to the document of ClusterResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "myResourceGroup"; string clusterName = "testCluster"; - ResourceIdentifier eventHubsClusterResourceId = EventHubsClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - EventHubsClusterResource eventHubsCluster = client.GetEventHubsClusterResource(eventHubsClusterResourceId); + ResourceIdentifier clusterResourceId = ClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); + ClusterResource cluster = client.GetClusterResource(clusterResourceId); // invoke the operation - ClusterQuotaConfigurationProperties result = await eventHubsCluster.GetConfigurationAsync(); + ClusterQuotaConfigurationProperties result = await cluster.GetConfigurationAsync(); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EHNamespaceCollection.cs similarity index 79% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EHNamespaceCollection.cs index 7fbf15daf46e..1bbd6cb5d506 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EHNamespaceCollection.cs @@ -18,14 +18,14 @@ namespace Azure.ResourceManager.EventHubs.Samples { - public partial class Sample_EventHubsNamespaceCollection + public partial class Sample_EHNamespaceCollection { // NamespaceListByResourceGroup [NUnit.Framework.Test] [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/2022-10-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 @@ -40,15 +40,15 @@ public async Task GetAll_NamespaceListByResourceGroup() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsNamespaceResource - EventHubsNamespaceCollection collection = resourceGroupResource.GetEventHubsNamespaces(); + // get the collection of this EHNamespaceResource + EHNamespaceCollection collection = resourceGroupResource.GetEHNamespaces(); // invoke the operation and iterate over the result - await foreach (EventHubsNamespaceResource item in collection.GetAllAsync()) + await foreach (EHNamespaceResource item in collection.GetAllAsync()) { // the variable item 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 = item.Data; + EHNamespaceData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -61,7 +61,7 @@ public async Task GetAll_NamespaceListByResourceGroup() [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/2022-10-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 @@ -76,12 +76,12 @@ public async Task CreateOrUpdate_NamespaceCreate() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsNamespaceResource - EventHubsNamespaceCollection collection = resourceGroupResource.GetEventHubsNamespaces(); + // get the collection of this EHNamespaceResource + EHNamespaceCollection collection = resourceGroupResource.GetEHNamespaces(); // invoke the operation string namespaceName = "NamespaceSample"; - EventHubsNamespaceData data = new EventHubsNamespaceData(new AzureLocation("East US")) + EHNamespaceData data = new EHNamespaceData(new AzureLocation("East US")) { Identity = new ManagedServiceIdentity("SystemAssigned, UserAssigned") { @@ -91,12 +91,12 @@ public async Task CreateOrUpdate_NamespaceCreate() [new ResourceIdentifier("/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2")] = new UserAssignedIdentity(), }, }, - ClusterArmId = new ResourceIdentifier("/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/clusters/enc-test"), - Encryption = new EventHubsEncryption() + ClusterArmId = "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/clusters/enc-test", + Encryption = new Encryption() { KeyVaultProperties = { -new EventHubsKeyVaultProperties() +new Models.KeyVaultProperties() { KeyName = "Samplekey", KeyVaultUri = new Uri("https://aprao-keyvault-user.vault-int.azure-int.net/"), @@ -106,12 +106,12 @@ public async Task CreateOrUpdate_NamespaceCreate() KeySource = EventHubsKeySource.MicrosoftKeyVault, }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, namespaceName, data); - EventHubsNamespaceResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, namespaceName, data); + EHNamespaceResource 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; + EHNamespaceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -121,7 +121,7 @@ public async Task CreateOrUpdate_NamespaceCreate() [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/2022-10-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 @@ -136,16 +136,16 @@ public async Task Get_NameSpaceGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsNamespaceResource - EventHubsNamespaceCollection collection = resourceGroupResource.GetEventHubsNamespaces(); + // get the collection of this EHNamespaceResource + EHNamespaceCollection collection = resourceGroupResource.GetEHNamespaces(); // invoke the operation string namespaceName = "NamespaceSample"; - EventHubsNamespaceResource result = await collection.GetAsync(namespaceName); + EHNamespaceResource result = await collection.GetAsync(namespaceName); // 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; + EHNamespaceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -155,7 +155,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/2022-10-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 @@ -170,8 +170,8 @@ public async Task Exists_NameSpaceGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsNamespaceResource - EventHubsNamespaceCollection collection = resourceGroupResource.GetEventHubsNamespaces(); + // get the collection of this EHNamespaceResource + EHNamespaceCollection collection = resourceGroupResource.GetEHNamespaces(); // invoke the operation string namespaceName = "NamespaceSample"; @@ -185,7 +185,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/2022-10-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 @@ -200,13 +200,13 @@ public async Task GetIfExists_NameSpaceGet() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this EventHubsNamespaceResource - EventHubsNamespaceCollection collection = resourceGroupResource.GetEventHubsNamespaces(); + // get the collection of this EHNamespaceResource + EHNamespaceCollection collection = resourceGroupResource.GetEHNamespaces(); // invoke the operation string namespaceName = "NamespaceSample"; - NullableResponse response = await collection.GetIfExistsAsync(namespaceName); - EventHubsNamespaceResource result = response.HasValue ? response.Value : null; + NullableResponse response = await collection.GetIfExistsAsync(namespaceName); + EHNamespaceResource result = response.HasValue ? response.Value : null; if (result == null) { @@ -216,7 +216,7 @@ public async Task GetIfExists_NameSpaceGet() { // 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; + EHNamespaceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EHNamespaceResource.cs similarity index 68% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EHNamespaceResource.cs index b3a4dbd6a58c..0d3e413fd3aa 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EHNamespaceResource.cs @@ -18,14 +18,14 @@ namespace Azure.ResourceManager.EventHubs.Samples { - public partial class Sample_EventHubsNamespaceResource + public partial class Sample_EHNamespaceResource { // NamespacesListBySubscription [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetEventHubsNamespaces_NamespacesListBySubscription() + public async Task GetEHNamespaces_NamespacesListBySubscription() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-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 @@ -40,11 +40,11 @@ public async Task GetEventHubsNamespaces_NamespacesListBySubscription() SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (EventHubsNamespaceResource item in subscriptionResource.GetEventHubsNamespacesAsync()) + await foreach (EHNamespaceResource item in subscriptionResource.GetEHNamespacesAsync()) { // the variable item 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 = item.Data; + EHNamespaceData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -57,7 +57,7 @@ public async Task GetEventHubsNamespaces_NamespacesListBySubscription() [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/2022-10-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 @@ -65,16 +65,16 @@ public async Task Delete_NameSpaceDelete() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "SampleSubscription"; string resourceGroupName = "ResurceGroupSample"; string namespaceName = "NamespaceSample"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation - await eventHubsNamespace.DeleteAsync(WaitUntil.Completed); + await ehNamespace.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -84,7 +84,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/2022-10-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 @@ -92,20 +92,20 @@ public async Task Get_NameSpaceGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "SampleSubscription"; string resourceGroupName = "ResurceGroupSample"; string namespaceName = "NamespaceSample"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation - EventHubsNamespaceResource result = await eventHubsNamespace.GetAsync(); + EHNamespaceResource result = await ehNamespace.GetAsync(); // 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; + EHNamespaceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -115,7 +115,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/2022-10-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 @@ -123,16 +123,16 @@ public async Task Update_NamespacesUpdate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "SampleSubscription"; string resourceGroupName = "ResurceGroupSample"; string namespaceName = "NamespaceSample"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation - EventHubsNamespaceData data = new EventHubsNamespaceData(new AzureLocation("East US")) + EHNamespaceData data = new EHNamespaceData(new AzureLocation("East US")) { Identity = new ManagedServiceIdentity("SystemAssigned, UserAssigned") { @@ -142,11 +142,11 @@ [new ResourceIdentifier("/subscriptions/SampleSubscription/resourceGroups/Resurc }, }, }; - EventHubsNamespaceResource result = await eventHubsNamespace.UpdateAsync(data); + EHNamespaceResource result = await ehNamespace.UpdateAsync(data); // 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; + EHNamespaceData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -156,7 +156,7 @@ [new ResourceIdentifier("/subscriptions/SampleSubscription/resourceGroups/Resurc [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/2022-10-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 @@ -182,7 +182,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/2022-10-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 @@ -190,16 +190,16 @@ public async Task GetPrivateLinkResources_NameSpacePrivateLinkResourcesGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2924"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation and iterate over the result - await foreach (EventHubsPrivateLinkResourceData item in eventHubsNamespace.GetPrivateLinkResourcesAsync()) + await foreach (EventHubsPrivateLinkResource item in ehNamespace.GetPrivateLinkResourcesAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -212,7 +212,7 @@ public async Task GetPrivateLinkResources_NameSpacePrivateLinkResourcesGet() [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/2022-10-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 @@ -220,16 +220,16 @@ public async Task GetNetworkSecurityPerimeterConfigurations_NamspaceNetworkSecur // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "SDK-EventHub-4794"; string namespaceName = "sdk-Namespace-5828"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation and iterate over the result - await foreach (EventHubsNetworkSecurityPerimeterConfiguration item in eventHubsNamespace.GetNetworkSecurityPerimeterConfigurationsAsync()) + await foreach (EventHubsNetworkSecurityPerimeterConfiguration item in ehNamespace.GetNetworkSecurityPerimeterConfigurationsAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -242,7 +242,7 @@ public async Task GetNetworkSecurityPerimeterConfigurations_NamspaceNetworkSecur [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/2022-10-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 @@ -250,17 +250,17 @@ public async Task CreateOrUpdateNetworkSecurityPerimeterConfiguration_NetworkSec // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "SDK-EventHub-4794"; string namespaceName = "sdk-Namespace-5828"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation string resourceAssociationName = "resourceAssociation1"; - await eventHubsNamespace.CreateOrUpdateNetworkSecurityPerimeterConfigurationAsync(WaitUntil.Completed, resourceAssociationName); + await ehNamespace.CreateOrUpdateNetworkSecurityPerimeterConfigurationAsync(WaitUntil.Completed, resourceAssociationName); Console.WriteLine($"Succeeded"); } @@ -270,7 +270,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/2022-10-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 @@ -278,17 +278,17 @@ public async Task CheckEventHubsDisasterRecoveryNameAvailability_NamespacesCheck // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "exampleSubscriptionId"; string resourceGroupName = "exampleResourceGroup"; string namespaceName = "sdk-Namespace-9080"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // invoke the operation EventHubsNameAvailabilityContent content = new EventHubsNameAvailabilityContent("sdk-DisasterRecovery-9474"); - EventHubsNameAvailabilityResult result = await eventHubsNamespace.CheckEventHubsDisasterRecoveryNameAvailabilityAsync(content); + EventHubsNameAvailabilityResult result = await ehNamespace.CheckEventHubsDisasterRecoveryNameAvailabilityAsync(content); Console.WriteLine($"Succeeded: {result}"); } 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 16fd5cd637ef..535f529001f5 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 @@ -23,7 +23,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/2022-10-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 @@ -61,7 +61,7 @@ public async Task GetAll_EventHubAuthorizationRuleListAll() [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/2022-10-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 @@ -105,7 +105,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/2022-10-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 @@ -141,7 +141,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/2022-10-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 @@ -173,7 +173,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/2022-10-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 9488bcf1a478..6998741ce577 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 @@ -23,7 +23,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/2022-10-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 @@ -64,7 +64,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/2022-10-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 @@ -97,7 +97,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/2022-10-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 @@ -126,7 +126,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/2022-10-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 @@ -155,7 +155,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/2022-10-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 b72ee1269574..4770483a56d9 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 @@ -23,7 +23,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/2022-10-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 @@ -31,16 +31,16 @@ public async Task GetAll_EventHubsListAll() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e2f361f0-3b27-4503-a9cc-21cfba380093"; string resourceGroupName = "Default-NotificationHubs-AustraliaEast"; string namespaceName = "sdk-Namespace-5357"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubResource - EventHubCollection collection = eventHubsNamespace.GetEventHubs(); + EventHubCollection collection = ehNamespace.GetEventHubs(); // invoke the operation and iterate over the result await foreach (EventHubResource item in collection.GetAllAsync()) @@ -60,7 +60,7 @@ public async Task GetAll_EventHubsListAll() [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/2022-10-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 @@ -68,16 +68,16 @@ public async Task CreateOrUpdate_EventHubCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "Default-NotificationHubs-AustraliaEast"; string namespaceName = "sdk-Namespace-5357"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubResource - EventHubCollection collection = eventHubsNamespace.GetEventHubs(); + EventHubCollection collection = ehNamespace.GetEventHubs(); // invoke the operation string eventHubName = "sdk-EventHub-6547"; @@ -94,6 +94,11 @@ public async Task CreateOrUpdate_EventHubCreate() Destination = new EventHubDestination() { Name = "EventHubArchive.AzureBlockBlob", + Identity = new CaptureIdentity() + { + IdentityType = CaptureIdentityType.UserAssigned, + UserAssignedIdentity = "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2", + }, StorageAccountResourceId = new ResourceIdentifier("/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage"), BlobContainer = "container", ArchiveNameFormat = "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", @@ -101,7 +106,7 @@ public async Task CreateOrUpdate_EventHubCreate() }, RetentionDescription = new RetentionDescription() { - CleanupPolicy = CleanupPolicyRetentionDescription.Compaction, + CleanupPolicy = CleanupPolicyRetentionDescription.Compact, RetentionTimeInHours = 96, TombstoneRetentionTimeInHours = 1, }, @@ -121,7 +126,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/2022-10-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 @@ -129,16 +134,16 @@ public async Task Get_EventHubGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e2f361f0-3b27-4503-a9cc-21cfba380093"; string resourceGroupName = "Default-NotificationHubs-AustraliaEast"; string namespaceName = "sdk-Namespace-716"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubResource - EventHubCollection collection = eventHubsNamespace.GetEventHubs(); + EventHubCollection collection = ehNamespace.GetEventHubs(); // invoke the operation string eventHubName = "sdk-EventHub-10"; @@ -156,7 +161,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/2022-10-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 @@ -164,16 +169,16 @@ public async Task Exists_EventHubGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e2f361f0-3b27-4503-a9cc-21cfba380093"; string resourceGroupName = "Default-NotificationHubs-AustraliaEast"; string namespaceName = "sdk-Namespace-716"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubResource - EventHubCollection collection = eventHubsNamespace.GetEventHubs(); + EventHubCollection collection = ehNamespace.GetEventHubs(); // invoke the operation string eventHubName = "sdk-EventHub-10"; @@ -187,7 +192,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/2022-10-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 @@ -195,16 +200,16 @@ public async Task GetIfExists_EventHubGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e2f361f0-3b27-4503-a9cc-21cfba380093"; string resourceGroupName = "Default-NotificationHubs-AustraliaEast"; string namespaceName = "sdk-Namespace-716"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubResource - EventHubCollection collection = eventHubsNamespace.GetEventHubs(); + EventHubCollection collection = ehNamespace.GetEventHubs(); // invoke the operation string eventHubName = "sdk-EventHub-10"; 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 817f41f90e9b..fc7b74d83d9c 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 @@ -23,7 +23,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/2022-10-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 @@ -54,6 +54,11 @@ public async Task Update_EventHubCreate() Destination = new EventHubDestination() { Name = "EventHubArchive.AzureBlockBlob", + Identity = new CaptureIdentity() + { + IdentityType = CaptureIdentityType.UserAssigned, + UserAssignedIdentity = "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2", + }, StorageAccountResourceId = new ResourceIdentifier("/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage"), BlobContainer = "container", ArchiveNameFormat = "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", @@ -61,7 +66,7 @@ public async Task Update_EventHubCreate() }, RetentionDescription = new RetentionDescription() { - CleanupPolicy = CleanupPolicyRetentionDescription.Compaction, + CleanupPolicy = CleanupPolicyRetentionDescription.Compact, RetentionTimeInHours = 96, TombstoneRetentionTimeInHours = 1, }, @@ -81,7 +86,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/2022-10-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 @@ -109,7 +114,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/2022-10-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 0863e9a4e535..5c5b6a2f2570 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 @@ -23,7 +23,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/2022-10-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 @@ -31,16 +31,16 @@ public async Task GetAll_ListApplicationGroups() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "contosotest"; string namespaceName = "contoso-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsApplicationGroupResource - EventHubsApplicationGroupCollection collection = eventHubsNamespace.GetEventHubsApplicationGroups(); + EventHubsApplicationGroupCollection collection = ehNamespace.GetEventHubsApplicationGroups(); // invoke the operation and iterate over the result await foreach (EventHubsApplicationGroupResource item in collection.GetAllAsync()) @@ -60,7 +60,7 @@ public async Task GetAll_ListApplicationGroups() [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/2022-10-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 @@ -68,16 +68,16 @@ public async Task CreateOrUpdate_ApplicationGroupCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "contosotest"; string namespaceName = "contoso-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsApplicationGroupResource - EventHubsApplicationGroupCollection collection = eventHubsNamespace.GetEventHubsApplicationGroups(); + EventHubsApplicationGroupCollection collection = ehNamespace.GetEventHubsApplicationGroups(); // invoke the operation string applicationGroupName = "appGroup1"; @@ -105,7 +105,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/2022-10-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 @@ -113,16 +113,16 @@ public async Task Get_ApplicationGroupGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "contosotest"; string namespaceName = "contoso-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsApplicationGroupResource - EventHubsApplicationGroupCollection collection = eventHubsNamespace.GetEventHubsApplicationGroups(); + EventHubsApplicationGroupCollection collection = ehNamespace.GetEventHubsApplicationGroups(); // invoke the operation string applicationGroupName = "appGroup1"; @@ -140,7 +140,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/2022-10-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 @@ -148,16 +148,16 @@ public async Task Exists_ApplicationGroupGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "contosotest"; string namespaceName = "contoso-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsApplicationGroupResource - EventHubsApplicationGroupCollection collection = eventHubsNamespace.GetEventHubsApplicationGroups(); + EventHubsApplicationGroupCollection collection = ehNamespace.GetEventHubsApplicationGroups(); // invoke the operation string applicationGroupName = "appGroup1"; @@ -171,7 +171,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/2022-10-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 @@ -179,16 +179,16 @@ public async Task GetIfExists_ApplicationGroupGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "contosotest"; string namespaceName = "contoso-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsApplicationGroupResource - EventHubsApplicationGroupCollection collection = eventHubsNamespace.GetEventHubsApplicationGroups(); + EventHubsApplicationGroupCollection collection = ehNamespace.GetEventHubsApplicationGroups(); // invoke the operation string applicationGroupName = "appGroup1"; 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 b5fda9a32046..5c15504c5220 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 @@ -23,7 +23,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/2022-10-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 @@ -65,7 +65,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/2022-10-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 @@ -93,7 +93,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/2022-10-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_EventHubsConsumerGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsConsumerGroupCollection.cs index f18098aeba76..bd4be0f92d64 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 @@ -22,7 +22,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/2022-10-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 @@ -63,7 +63,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/2022-10-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 @@ -99,7 +99,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/2022-10-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 @@ -131,7 +131,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/2022-10-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 @@ -175,7 +175,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/2022-10-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 96b43a501f4c..b9df693118ad 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 @@ -22,7 +22,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/2022-10-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 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/2022-10-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 @@ -89,7 +89,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/2022-10-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 678dbdef36f4..07f45ecafdcf 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 @@ -22,7 +22,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/2022-10-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 @@ -60,7 +60,7 @@ public async Task GetAll_ListAuthorizationRules() [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/2022-10-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 @@ -96,7 +96,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/2022-10-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 @@ -128,7 +128,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/2022-10-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 1b8329f30fd0..807ede47967d 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 @@ -22,7 +22,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/2022-10-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 @@ -55,7 +55,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/2022-10-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 d4fb406aff31..91f43fa8f591 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 @@ -22,7 +22,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/2022-10-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 @@ -30,16 +30,16 @@ public async Task GetAll_EHAliasList() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "exampleSubscriptionId"; string resourceGroupName = "exampleResourceGroup"; string namespaceName = "sdk-Namespace-8859"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsDisasterRecoveryResource - EventHubsDisasterRecoveryCollection collection = eventHubsNamespace.GetEventHubsDisasterRecoveries(); + EventHubsDisasterRecoveryCollection collection = ehNamespace.GetEventHubsDisasterRecoveries(); // invoke the operation and iterate over the result await foreach (EventHubsDisasterRecoveryResource item in collection.GetAllAsync()) @@ -59,7 +59,7 @@ public async Task GetAll_EHAliasList() [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/2022-10-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 @@ -67,16 +67,16 @@ public async Task CreateOrUpdate_EHAliasCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "exampleSubscriptionId"; string resourceGroupName = "exampleResourceGroup"; string namespaceName = "sdk-Namespace-8859"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsDisasterRecoveryResource - EventHubsDisasterRecoveryCollection collection = eventHubsNamespace.GetEventHubsDisasterRecoveries(); + EventHubsDisasterRecoveryCollection collection = ehNamespace.GetEventHubsDisasterRecoveries(); // invoke the operation string @alias = "sdk-DisasterRecovery-3814"; @@ -99,7 +99,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/2022-10-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 @@ -107,16 +107,16 @@ public async Task Get_EHAliasGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "exampleSubscriptionId"; string resourceGroupName = "exampleResourceGroup"; string namespaceName = "sdk-Namespace-8859"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsDisasterRecoveryResource - EventHubsDisasterRecoveryCollection collection = eventHubsNamespace.GetEventHubsDisasterRecoveries(); + EventHubsDisasterRecoveryCollection collection = ehNamespace.GetEventHubsDisasterRecoveries(); // invoke the operation string @alias = "sdk-DisasterRecovery-3814"; @@ -134,7 +134,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/2022-10-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 @@ -142,16 +142,16 @@ public async Task Exists_EHAliasGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "exampleSubscriptionId"; string resourceGroupName = "exampleResourceGroup"; string namespaceName = "sdk-Namespace-8859"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsDisasterRecoveryResource - EventHubsDisasterRecoveryCollection collection = eventHubsNamespace.GetEventHubsDisasterRecoveries(); + EventHubsDisasterRecoveryCollection collection = ehNamespace.GetEventHubsDisasterRecoveries(); // invoke the operation string @alias = "sdk-DisasterRecovery-3814"; @@ -165,7 +165,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/2022-10-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 @@ -173,16 +173,16 @@ public async Task GetIfExists_EHAliasGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "exampleSubscriptionId"; string resourceGroupName = "exampleResourceGroup"; string namespaceName = "sdk-Namespace-8859"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsDisasterRecoveryResource - EventHubsDisasterRecoveryCollection collection = eventHubsNamespace.GetEventHubsDisasterRecoveries(); + EventHubsDisasterRecoveryCollection collection = ehNamespace.GetEventHubsDisasterRecoveries(); // invoke the operation string @alias = "sdk-DisasterRecovery-3814"; 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 7ae8b076a538..2fc1893b71f1 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 @@ -22,7 +22,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/2022-10-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 @@ -59,7 +59,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/2022-10-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 @@ -87,7 +87,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/2022-10-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 @@ -119,7 +119,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/2022-10-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 @@ -147,7 +147,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/2022-10-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 bfa623a58ed9..288891b0ab82 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 @@ -23,7 +23,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/2022-10-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 @@ -31,16 +31,16 @@ public async Task GetAll_ListAuthorizationRules() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2702"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsNamespaceAuthorizationRuleResource - EventHubsNamespaceAuthorizationRuleCollection collection = eventHubsNamespace.GetEventHubsNamespaceAuthorizationRules(); + EventHubsNamespaceAuthorizationRuleCollection collection = ehNamespace.GetEventHubsNamespaceAuthorizationRules(); // invoke the operation and iterate over the result await foreach (EventHubsNamespaceAuthorizationRuleResource item in collection.GetAllAsync()) @@ -60,7 +60,7 @@ public async Task GetAll_ListAuthorizationRules() [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/2022-10-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 @@ -68,16 +68,16 @@ public async Task CreateOrUpdate_NameSpaceAuthorizationRuleCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2702"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsNamespaceAuthorizationRuleResource - EventHubsNamespaceAuthorizationRuleCollection collection = eventHubsNamespace.GetEventHubsNamespaceAuthorizationRules(); + EventHubsNamespaceAuthorizationRuleCollection collection = ehNamespace.GetEventHubsNamespaceAuthorizationRules(); // invoke the operation string authorizationRuleName = "sdk-Authrules-1746"; @@ -103,7 +103,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/2022-10-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 @@ -111,16 +111,16 @@ public async Task Get_NameSpaceAuthorizationRuleGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2702"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsNamespaceAuthorizationRuleResource - EventHubsNamespaceAuthorizationRuleCollection collection = eventHubsNamespace.GetEventHubsNamespaceAuthorizationRules(); + EventHubsNamespaceAuthorizationRuleCollection collection = ehNamespace.GetEventHubsNamespaceAuthorizationRules(); // invoke the operation string authorizationRuleName = "sdk-Authrules-1746"; @@ -138,7 +138,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/2022-10-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 @@ -146,16 +146,16 @@ public async Task Exists_NameSpaceAuthorizationRuleGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2702"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsNamespaceAuthorizationRuleResource - EventHubsNamespaceAuthorizationRuleCollection collection = eventHubsNamespace.GetEventHubsNamespaceAuthorizationRules(); + EventHubsNamespaceAuthorizationRuleCollection collection = ehNamespace.GetEventHubsNamespaceAuthorizationRules(); // invoke the operation string authorizationRuleName = "sdk-Authrules-1746"; @@ -169,7 +169,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/2022-10-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 @@ -177,16 +177,16 @@ public async Task GetIfExists_NameSpaceAuthorizationRuleGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "5f750a97-50d9-4e36-8081-c9ee4c0210d4"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2702"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsNamespaceAuthorizationRuleResource - EventHubsNamespaceAuthorizationRuleCollection collection = eventHubsNamespace.GetEventHubsNamespaceAuthorizationRules(); + EventHubsNamespaceAuthorizationRuleCollection collection = ehNamespace.GetEventHubsNamespaceAuthorizationRules(); // invoke the operation string authorizationRuleName = "sdk-Authrules-1746"; 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 3bcbe985e83e..4afe29e5b771 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 @@ -23,7 +23,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/2022-10-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 @@ -63,7 +63,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/2022-10-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 @@ -91,7 +91,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/2022-10-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 @@ -123,7 +123,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/2022-10-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 @@ -151,7 +151,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/2022-10-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_EventHubsPrivateEndpointConnectionCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsPrivateEndpointConnectionCollection.cs index 410ff09c95ce..fdf697db90d5 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 @@ -18,12 +18,12 @@ namespace Azure.ResourceManager.EventHubs.Samples { public partial class Sample_EventHubsPrivateEndpointConnectionCollection { - // NameSpaceCreate + // PrivateEndPointConnectionList [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_NameSpaceCreate() + public async Task GetAll_PrivateEndPointConnectionList() { - // Generated from example definition: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-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 @@ -31,16 +31,16 @@ public async Task GetAll_NameSpaceCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "SDK-EventHub-4794"; string namespaceName = "sdk-Namespace-5828"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsPrivateEndpointConnectionResource - EventHubsPrivateEndpointConnectionCollection collection = eventHubsNamespace.GetEventHubsPrivateEndpointConnections(); + EventHubsPrivateEndpointConnectionCollection collection = ehNamespace.GetEventHubsPrivateEndpointConnections(); // invoke the operation and iterate over the result await foreach (EventHubsPrivateEndpointConnectionResource item in collection.GetAllAsync()) @@ -60,7 +60,7 @@ public async Task GetAll_NameSpaceCreate() [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/2022-10-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 @@ -68,28 +68,28 @@ public async Task CreateOrUpdate_NameSpacePrivateEndPointConnectionCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "ArunMonocle"; string namespaceName = "sdk-Namespace-2924"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsPrivateEndpointConnectionResource - EventHubsPrivateEndpointConnectionCollection collection = eventHubsNamespace.GetEventHubsPrivateEndpointConnections(); + EventHubsPrivateEndpointConnectionCollection collection = ehNamespace.GetEventHubsPrivateEndpointConnections(); // invoke the operation string privateEndpointConnectionName = "privateEndpointConnectionName"; EventHubsPrivateEndpointConnectionData data = new EventHubsPrivateEndpointConnectionData() { PrivateEndpointId = new ResourceIdentifier("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"), - ConnectionState = new EventHubsPrivateLinkServiceConnectionState() + ConnectionState = new ConnectionState() { - Status = EventHubsPrivateLinkConnectionStatus.Rejected, + Status = PrivateLinkConnectionStatus.Rejected, Description = "testing", }, - ProvisioningState = EventHubsPrivateEndpointConnectionProvisioningState.Succeeded, + ProvisioningState = EndPointProvisioningState.Succeeded, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, data); EventHubsPrivateEndpointConnectionResource result = lro.Value; @@ -106,7 +106,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/2022-10-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 @@ -114,16 +114,16 @@ public async Task Get_NameSpacePrivateEndPointConnectionGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "SDK-EventHub-4794"; string namespaceName = "sdk-Namespace-5828"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsPrivateEndpointConnectionResource - EventHubsPrivateEndpointConnectionCollection collection = eventHubsNamespace.GetEventHubsPrivateEndpointConnections(); + EventHubsPrivateEndpointConnectionCollection collection = ehNamespace.GetEventHubsPrivateEndpointConnections(); // invoke the operation string privateEndpointConnectionName = "privateEndpointConnectionName"; @@ -141,7 +141,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/2022-10-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 @@ -149,16 +149,16 @@ public async Task Exists_NameSpacePrivateEndPointConnectionGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "SDK-EventHub-4794"; string namespaceName = "sdk-Namespace-5828"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsPrivateEndpointConnectionResource - EventHubsPrivateEndpointConnectionCollection collection = eventHubsNamespace.GetEventHubsPrivateEndpointConnections(); + EventHubsPrivateEndpointConnectionCollection collection = ehNamespace.GetEventHubsPrivateEndpointConnections(); // invoke the operation string privateEndpointConnectionName = "privateEndpointConnectionName"; @@ -172,7 +172,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/2022-10-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 @@ -180,16 +180,16 @@ public async Task GetIfExists_NameSpacePrivateEndPointConnectionGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "subID"; string resourceGroupName = "SDK-EventHub-4794"; string namespaceName = "sdk-Namespace-5828"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsPrivateEndpointConnectionResource - EventHubsPrivateEndpointConnectionCollection collection = eventHubsNamespace.GetEventHubsPrivateEndpointConnections(); + EventHubsPrivateEndpointConnectionCollection collection = ehNamespace.GetEventHubsPrivateEndpointConnections(); // invoke the operation string privateEndpointConnectionName = "privateEndpointConnectionName"; 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 421eca1d5e6d..565a042c992d 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 @@ -23,7 +23,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/2022-10-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 @@ -44,12 +44,12 @@ public async Task Update_NameSpacePrivateEndPointConnectionCreate() EventHubsPrivateEndpointConnectionData data = new EventHubsPrivateEndpointConnectionData() { PrivateEndpointId = new ResourceIdentifier("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"), - ConnectionState = new EventHubsPrivateLinkServiceConnectionState() + ConnectionState = new ConnectionState() { - Status = EventHubsPrivateLinkConnectionStatus.Rejected, + Status = PrivateLinkConnectionStatus.Rejected, Description = "testing", }, - ProvisioningState = EventHubsPrivateEndpointConnectionProvisioningState.Succeeded, + ProvisioningState = EndPointProvisioningState.Succeeded, }; ArmOperation lro = await eventHubsPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, data); EventHubsPrivateEndpointConnectionResource result = lro.Value; @@ -66,7 +66,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/2022-10-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 @@ -94,7 +94,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/2022-10-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 f70fec0b56c7..62fbcfbe7416 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 @@ -23,7 +23,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/2022-10-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 @@ -31,16 +31,16 @@ public async Task GetAll_SchemaRegistryListAll() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e8baea74-64ce-459b-bee3-5aa4c47b3ae3"; string resourceGroupName = "alitest"; string namespaceName = "ali-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsSchemaGroupResource - EventHubsSchemaGroupCollection collection = eventHubsNamespace.GetEventHubsSchemaGroups(); + EventHubsSchemaGroupCollection collection = ehNamespace.GetEventHubsSchemaGroups(); // invoke the operation and iterate over the result await foreach (EventHubsSchemaGroupResource item in collection.GetAllAsync()) @@ -60,7 +60,7 @@ public async Task GetAll_SchemaRegistryListAll() [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/2022-10-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 @@ -68,16 +68,16 @@ public async Task CreateOrUpdate_SchemaRegistryCreate() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e8baea74-64ce-459b-bee3-5aa4c47b3ae3"; string resourceGroupName = "alitest"; string namespaceName = "ali-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsSchemaGroupResource - EventHubsSchemaGroupCollection collection = eventHubsNamespace.GetEventHubsSchemaGroups(); + EventHubsSchemaGroupCollection collection = ehNamespace.GetEventHubsSchemaGroups(); // invoke the operation string schemaGroupName = "testSchemaGroup1"; @@ -104,7 +104,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/2022-10-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 @@ -112,16 +112,16 @@ public async Task Get_SchemaRegistryGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e8baea74-64ce-459b-bee3-5aa4c47b3ae3"; string resourceGroupName = "alitest"; string namespaceName = "ali-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsSchemaGroupResource - EventHubsSchemaGroupCollection collection = eventHubsNamespace.GetEventHubsSchemaGroups(); + EventHubsSchemaGroupCollection collection = ehNamespace.GetEventHubsSchemaGroups(); // invoke the operation string schemaGroupName = "testSchemaGroup1"; @@ -139,7 +139,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/2022-10-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 @@ -147,16 +147,16 @@ public async Task Exists_SchemaRegistryGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e8baea74-64ce-459b-bee3-5aa4c47b3ae3"; string resourceGroupName = "alitest"; string namespaceName = "ali-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsSchemaGroupResource - EventHubsSchemaGroupCollection collection = eventHubsNamespace.GetEventHubsSchemaGroups(); + EventHubsSchemaGroupCollection collection = ehNamespace.GetEventHubsSchemaGroups(); // invoke the operation string schemaGroupName = "testSchemaGroup1"; @@ -170,7 +170,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/2022-10-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 @@ -178,16 +178,16 @@ public async Task GetIfExists_SchemaRegistryGet() // 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 + // this example assumes you already have this EHNamespaceResource created on azure + // for more information of creating EHNamespaceResource, please refer to the document of EHNamespaceResource string subscriptionId = "e8baea74-64ce-459b-bee3-5aa4c47b3ae3"; string resourceGroupName = "alitest"; string namespaceName = "ali-ua-test-eh-system-1"; - ResourceIdentifier eventHubsNamespaceResourceId = EventHubsNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNamespaceResource eventHubsNamespace = client.GetEventHubsNamespaceResource(eventHubsNamespaceResourceId); + ResourceIdentifier ehNamespaceResourceId = EHNamespaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + EHNamespaceResource ehNamespace = client.GetEHNamespaceResource(ehNamespaceResourceId); // get the collection of this EventHubsSchemaGroupResource - EventHubsSchemaGroupCollection collection = eventHubsNamespace.GetEventHubsSchemaGroups(); + EventHubsSchemaGroupCollection collection = ehNamespace.GetEventHubsSchemaGroups(); // invoke the operation string schemaGroupName = "testSchemaGroup1"; 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 caf6e242eb6f..ac0ed9ccb713 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 @@ -23,7 +23,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/2022-10-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 @@ -64,7 +64,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/2022-10-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 @@ -92,7 +92,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/2022-10-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_EventHubsNetworkRuleSetResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_NetworkRuleSetResource.cs similarity index 59% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNetworkRuleSetResource.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_NetworkRuleSetResource.cs index d9f674a32d40..0b9b2c1a66ce 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsNetworkRuleSetResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_NetworkRuleSetResource.cs @@ -16,14 +16,14 @@ namespace Azure.ResourceManager.EventHubs.Samples { - public partial class Sample_EventHubsNetworkRuleSetResource + public partial class Sample_NetworkRuleSetResource { // NameSpaceNetworkRuleSetCreate [NUnit.Framework.Test] [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/2022-10-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 @@ -31,29 +31,29 @@ public async Task CreateOrUpdate_NameSpaceNetworkRuleSetCreate() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsNetworkRuleSetResource created on azure - // for more information of creating EventHubsNetworkRuleSetResource, please refer to the document of EventHubsNetworkRuleSetResource + // this example assumes you already have this NetworkRuleSetResource created on azure + // for more information of creating NetworkRuleSetResource, please refer to the document of NetworkRuleSetResource string subscriptionId = "Subscription"; string resourceGroupName = "ResourceGroup"; string namespaceName = "sdk-Namespace-6019"; - ResourceIdentifier eventHubsNetworkRuleSetResourceId = EventHubsNetworkRuleSetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNetworkRuleSetResource eventHubsNetworkRuleSet = client.GetEventHubsNetworkRuleSetResource(eventHubsNetworkRuleSetResourceId); + ResourceIdentifier networkRuleSetResourceId = NetworkRuleSetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + NetworkRuleSetResource networkRuleSet = client.GetNetworkRuleSetResource(networkRuleSetResourceId); // invoke the operation - EventHubsNetworkRuleSetData data = new EventHubsNetworkRuleSetData() + NetworkRuleSetData data = new NetworkRuleSetData() { - DefaultAction = EventHubsNetworkRuleSetDefaultAction.Deny, + DefaultAction = DefaultAction.Deny, VirtualNetworkRules = { -new EventHubsNetworkRuleSetVirtualNetworkRules() +new NWRuleSetVirtualNetworkRules() { SubnetId = new ResourceIdentifier("/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"), IgnoreMissingVnetServiceEndpoint = true, -},new EventHubsNetworkRuleSetVirtualNetworkRules() +},new NWRuleSetVirtualNetworkRules() { SubnetId = new ResourceIdentifier("/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"), IgnoreMissingVnetServiceEndpoint = false, -},new EventHubsNetworkRuleSetVirtualNetworkRules() +},new NWRuleSetVirtualNetworkRules() { SubnetId = new ResourceIdentifier("/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"), IgnoreMissingVnetServiceEndpoint = false, @@ -61,35 +61,35 @@ public async Task CreateOrUpdate_NameSpaceNetworkRuleSetCreate() }, IPRules = { -new EventHubsNetworkRuleSetIPRules() +new NWRuleSetIPRules() { IPMask = "1.1.1.1", -Action = EventHubsNetworkRuleIPAction.Allow, -},new EventHubsNetworkRuleSetIPRules() +Action = NetworkRuleIPAction.Allow, +},new NWRuleSetIPRules() { IPMask = "1.1.1.2", -Action = EventHubsNetworkRuleIPAction.Allow, -},new EventHubsNetworkRuleSetIPRules() +Action = NetworkRuleIPAction.Allow, +},new NWRuleSetIPRules() { IPMask = "1.1.1.3", -Action = EventHubsNetworkRuleIPAction.Allow, -},new EventHubsNetworkRuleSetIPRules() +Action = NetworkRuleIPAction.Allow, +},new NWRuleSetIPRules() { IPMask = "1.1.1.4", -Action = EventHubsNetworkRuleIPAction.Allow, -},new EventHubsNetworkRuleSetIPRules() +Action = NetworkRuleIPAction.Allow, +},new NWRuleSetIPRules() { IPMask = "1.1.1.5", -Action = EventHubsNetworkRuleIPAction.Allow, +Action = NetworkRuleIPAction.Allow, } }, }; - ArmOperation lro = await eventHubsNetworkRuleSet.CreateOrUpdateAsync(WaitUntil.Completed, data); - EventHubsNetworkRuleSetResource result = lro.Value; + ArmOperation lro = await networkRuleSet.CreateOrUpdateAsync(WaitUntil.Completed, data); + NetworkRuleSetResource 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 - EventHubsNetworkRuleSetData resourceData = result.Data; + NetworkRuleSetData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -99,7 +99,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/2022-10-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 @@ -107,20 +107,20 @@ public async Task Get_NameSpaceNetworkRuleSetGet() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this EventHubsNetworkRuleSetResource created on azure - // for more information of creating EventHubsNetworkRuleSetResource, please refer to the document of EventHubsNetworkRuleSetResource + // this example assumes you already have this NetworkRuleSetResource created on azure + // for more information of creating NetworkRuleSetResource, please refer to the document of NetworkRuleSetResource string subscriptionId = "Subscription"; string resourceGroupName = "ResourceGroup"; string namespaceName = "sdk-Namespace-6019"; - ResourceIdentifier eventHubsNetworkRuleSetResourceId = EventHubsNetworkRuleSetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); - EventHubsNetworkRuleSetResource eventHubsNetworkRuleSet = client.GetEventHubsNetworkRuleSetResource(eventHubsNetworkRuleSetResourceId); + ResourceIdentifier networkRuleSetResourceId = NetworkRuleSetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName); + NetworkRuleSetResource networkRuleSet = client.GetNetworkRuleSetResource(networkRuleSetResourceId); // invoke the operation - EventHubsNetworkRuleSetResource result = await eventHubsNetworkRuleSet.GetAsync(); + NetworkRuleSetResource result = await networkRuleSet.GetAsync(); // 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 - EventHubsNetworkRuleSetData resourceData = result.Data; + NetworkRuleSetData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs index c88d4c25616f..68b80d1af595 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ArmEventHubsModelFactory.cs @@ -27,7 +27,7 @@ public static AvailableCluster AvailableCluster(AzureLocation? location = null) return new AvailableCluster(location); } - /// Initializes a new instance of EventHubsClusterData. + /// Initializes a new instance of ClusterData. /// The id. /// The name. /// The resourceType. @@ -35,20 +35,22 @@ public static AvailableCluster AvailableCluster(AzureLocation? location = null) /// The tags. /// The location. /// Properties of the cluster SKU. - /// The UTC time when the Event Hubs Cluster was created. - /// The UTC time when the Event Hubs Cluster was last updated. + /// The UTC time when the Event Hubs Cluster was created. + /// Provisioning state of the Cluster. + /// The UTC time when the Event Hubs Cluster was last updated. /// The metric ID of the cluster resource. Provided by the service and not modifiable by the user. /// Status of the Cluster resource. /// A value that indicates whether Scaling is Supported. - /// A new instance for mocking. - public static EventHubsClusterData EventHubsClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, EventHubsClusterSku sku = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, string metricId = null, string status = null, bool? supportsScaling = null) + /// Properties of the cluster upgrade preferences. + /// A new instance for mocking. + public static ClusterData ClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ClusterSku sku = null, string createdAt = null, ProvisioningState? provisioningState = null, string updatedAt = null, string metricId = null, string status = null, bool? supportsScaling = null, UpgradePreferences upgradePreferences = null) { tags ??= new Dictionary(); - return new EventHubsClusterData(id, name, resourceType, systemData, tags, location, sku, createdOn, updatedOn, metricId, status, supportsScaling); + return new ClusterData(id, name, resourceType, systemData, tags, location, sku, createdAt, provisioningState, updatedAt, metricId, status, supportsScaling, upgradePreferences); } - /// Initializes a new instance of EventHubsNamespaceData. + /// Initializes a new instance of EHNamespaceData. /// The id. /// The name. /// The resourceType. @@ -74,13 +76,13 @@ 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. - /// 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) + /// A new instance for mocking. + public static EHNamespaceData EHNamespaceData(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, string clusterArmId = null, string metricId = null, bool? isAutoInflateEnabled = null, EventHubsPublicNetworkAccess? publicNetworkAccess = null, int? maximumThroughputUnits = null, bool? kafkaEnabled = null, bool? zoneRedundant = null, Encryption encryption = null, IEnumerable privateEndpointConnections = null, bool? disableLocalAuth = null, string alternateName = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); - return new EventHubsNamespaceData(id, name, resourceType, systemData, tags, location, sku, identity, minimumTlsVersion, provisioningState, status, createdOn, updatedOn, serviceBusEndpoint, clusterArmId, metricId, isAutoInflateEnabled, publicNetworkAccess, maximumThroughputUnits, kafkaEnabled, zoneRedundant, encryption, privateEndpointConnections?.ToList(), disableLocalAuth, alternateName); + return new EHNamespaceData(id, name, resourceType, systemData, tags, location, sku, identity, minimumTlsVersion, provisioningState, status, createdOn, updatedOn, serviceBusEndpoint, clusterArmId, metricId, isAutoInflateEnabled, publicNetworkAccess, maximumThroughputUnits, kafkaEnabled, zoneRedundant, encryption, privateEndpointConnections?.ToList(), disableLocalAuth, alternateName); } /// Initializes a new instance of EventHubsPrivateEndpointConnectionData. @@ -93,12 +95,12 @@ public static EventHubsNamespaceData EventHubsNamespaceData(ResourceIdentifier i /// Provisioning state of the Private Endpoint Connection. /// The geo-location where the resource lives. /// A new instance for mocking. - public static EventHubsPrivateEndpointConnectionData EventHubsPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, EventHubsPrivateLinkServiceConnectionState connectionState = null, EventHubsPrivateEndpointConnectionProvisioningState? provisioningState = null, AzureLocation? location = null) + public static EventHubsPrivateEndpointConnectionData EventHubsPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, ConnectionState connectionState = null, EndPointProvisioningState? provisioningState = null, AzureLocation? location = null) { return new EventHubsPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, connectionState, provisioningState, location); } - /// Initializes a new instance of EventHubsPrivateLinkResourceData. + /// Initializes a new instance of EventHubsPrivateLinkResource. /// The id. /// The name. /// The resourceType. @@ -106,13 +108,13 @@ public static EventHubsPrivateEndpointConnectionData EventHubsPrivateEndpointCon /// The private link resource group id. /// The private link resource required member names. /// The private link resource Private link DNS zone name. - /// A new instance for mocking. - public static EventHubsPrivateLinkResourceData EventHubsPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + /// A new instance for mocking. + public static EventHubsPrivateLinkResource EventHubsPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) { requiredMembers ??= new List(); requiredZoneNames ??= new List(); - return new EventHubsPrivateLinkResourceData(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + return new EventHubsPrivateLinkResource(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); } /// Initializes a new instance of EventHubsNetworkSecurityPerimeterConfiguration. @@ -120,20 +122,23 @@ public static EventHubsPrivateLinkResourceData EventHubsPrivateLinkResourceData( /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. /// Provisioning state of NetworkSecurityPerimeter configuration propagation. /// List of Provisioning Issues if any. /// NetworkSecurityPerimeter related information. /// Information about resource association. /// Information about current network profile. + /// True if the EventHub namespace is backed by another Azure resource and not visible to end users. + /// Indicates that the NSP controls related to backing association are only applicable to a specific feature in backing resource's data plane. + /// Source Resource Association name. + /// ARM Id of source resource. + /// The geo-location where the resource lives. /// A new instance for mocking. - public static EventHubsNetworkSecurityPerimeterConfiguration EventHubsNetworkSecurityPerimeterConfiguration(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, EventHubsNetworkSecurityPerimeterConfigurationProvisioningState? provisioningState = null, IEnumerable provisioningIssues = null, EventHubsNetworkSecurityPerimeter networkSecurityPerimeter = null, EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation = null, EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile profile = null) + public static EventHubsNetworkSecurityPerimeterConfiguration EventHubsNetworkSecurityPerimeterConfiguration(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EventHubsNetworkSecurityPerimeterConfigurationProvisioningState? provisioningState = null, IEnumerable provisioningIssues = null, EventHubsNetworkSecurityPerimeter networkSecurityPerimeter = null, EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation = null, EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile profile = null, bool? isBackingResource = null, IEnumerable applicableFeatures = null, string parentAssociationName = null, string sourceResourceId = null, AzureLocation? location = null) { - tags ??= new Dictionary(); provisioningIssues ??= new List(); + applicableFeatures ??= new List(); - return new EventHubsNetworkSecurityPerimeterConfiguration(id, name, resourceType, systemData, tags, location, provisioningState, provisioningIssues?.ToList(), networkSecurityPerimeter, resourceAssociation, profile); + return new EventHubsNetworkSecurityPerimeterConfiguration(id, name, resourceType, systemData, provisioningState, provisioningIssues?.ToList(), networkSecurityPerimeter, resourceAssociation, profile, isBackingResource, applicableFeatures?.ToList(), parentAssociationName, sourceResourceId, location); } /// Initializes a new instance of EventHubsProvisioningIssue. @@ -214,7 +219,7 @@ public static EventHubsNspAccessRuleProperties EventHubsNspAccessRuleProperties( return new EventHubsNspAccessRuleProperties(direction, addressPrefixes?.ToList(), subscriptions?.ToList(), networkSecurityPerimeters?.ToList(), fullyQualifiedDomainNames?.ToList()); } - /// Initializes a new instance of EventHubsNetworkRuleSetData. + /// Initializes a new instance of NetworkRuleSetData. /// The id. /// The name. /// The resourceType. @@ -225,13 +230,13 @@ public static EventHubsNspAccessRuleProperties EventHubsNspAccessRuleProperties( /// List of IpRules. /// This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. /// The geo-location where the resource lives. - /// A new instance for mocking. - public static EventHubsNetworkRuleSetData EventHubsNetworkRuleSetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? trustedServiceAccessEnabled = null, EventHubsNetworkRuleSetDefaultAction? defaultAction = null, IEnumerable virtualNetworkRules = null, IEnumerable ipRules = null, EventHubsPublicNetworkAccessFlag? publicNetworkAccess = null, AzureLocation? location = null) + /// A new instance for mocking. + public static NetworkRuleSetData NetworkRuleSetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? trustedServiceAccessEnabled = null, DefaultAction? defaultAction = null, IEnumerable virtualNetworkRules = null, IEnumerable ipRules = null, PublicNetworkAccessFlag? publicNetworkAccess = null, AzureLocation? location = null) { - virtualNetworkRules ??= new List(); - ipRules ??= new List(); + virtualNetworkRules ??= new List(); + ipRules ??= new List(); - return new EventHubsNetworkRuleSetData(id, name, resourceType, systemData, trustedServiceAccessEnabled, defaultAction, virtualNetworkRules?.ToList(), ipRules?.ToList(), publicNetworkAccess, location); + return new NetworkRuleSetData(id, name, resourceType, systemData, trustedServiceAccessEnabled, defaultAction, virtualNetworkRules?.ToList(), ipRules?.ToList(), publicNetworkAccess, location); } /// Initializes a new instance of EventHubsAuthorizationRuleData. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterCollection.cs similarity index 66% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterCollection.cs index 5cadef00d731..87baa7868894 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsClusters method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetClusters method from an instance of . /// - public partial class EventHubsClusterCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class ClusterCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _eventHubsClusterClustersClientDiagnostics; - private readonly ClustersRestOperations _eventHubsClusterClustersRestClient; + private readonly ClientDiagnostics _clusterClientDiagnostics; + private readonly ClustersRestOperations _clusterRestClient; - /// Initializes a new instance of the class for mocking. - protected EventHubsClusterCollection() + /// Initializes a new instance of the class for mocking. + protected ClusterCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal EventHubsClusterCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ClusterCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _eventHubsClusterClustersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", EventHubsClusterResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(EventHubsClusterResource.ResourceType, out string eventHubsClusterClustersApiVersion); - _eventHubsClusterClustersRestClient = new ClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, eventHubsClusterClustersApiVersion); + _clusterClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ClusterResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ClusterResource.ResourceType, out string clusterApiVersion); + _clusterRestClient = new ClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, clusterApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string clusterName, EventHubsClusterData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string clusterName, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.CreateOrUpdate"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(new EventHubsClusterOperationSource(Client), _eventHubsClusterClustersClientDiagnostics, Pipeline, _eventHubsClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data).Request, response, OperationFinalStateVia.Location); + var response = await _clusterRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data, cancellationToken).ConfigureAwait(false); + var operation = new EventHubsArmOperation(new ClusterOperationSource(Client), _clusterClientDiagnostics, Pipeline, _clusterRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpdate /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string clusterName, EventHubsClusterData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string clusterName, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.CreateOrUpdate"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.CreateOrUpdate"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data, cancellationToken); - var operation = new EventHubsArmOperation(new EventHubsClusterOperationSource(Client), _eventHubsClusterClustersClientDiagnostics, Pipeline, _eventHubsClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data).Request, response, OperationFinalStateVia.Location); + var response = _clusterRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data, cancellationToken); + var operation = new EventHubsArmOperation(new ClusterOperationSource(Client), _clusterClientDiagnostics, Pipeline, _clusterRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string clusterName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string clusterName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.Get"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.Get"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken).ConfigureAwait(false); + var response = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsClusterResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ClusterResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string cl /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string clusterName, CancellationToken cancellationToken = default) + public virtual Response Get(string clusterName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.Get"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.Get"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken); + var response = _clusterRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsClusterResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ClusterResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string clusterName, Cancel /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _eventHubsClusterClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _eventHubsClusterClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EventHubsClusterResource(Client, EventHubsClusterData.DeserializeEventHubsClusterData(e)), _eventHubsClusterClustersClientDiagnostics, Pipeline, "EventHubsClusterCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _clusterRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _clusterRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ClusterResource(Client, ClusterData.DeserializeClusterData(e)), _clusterClientDiagnostics, Pipeline, "ClusterCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -246,12 +246,12 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _eventHubsClusterClustersRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _eventHubsClusterClustersRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EventHubsClusterResource(Client, EventHubsClusterData.DeserializeEventHubsClusterData(e)), _eventHubsClusterClustersClientDiagnostics, Pipeline, "EventHubsClusterCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _clusterRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _clusterRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ClusterResource(Client, ClusterData.DeserializeClusterData(e)), _clusterClientDiagnostics, Pipeline, "ClusterCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.Exists"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.Exists"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -310,11 +310,11 @@ public virtual Response Exists(string clusterName, CancellationToken cance { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.Exists"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.Exists"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken); + var response = _clusterRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -341,18 +341,18 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string clusterName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string clusterName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.GetIfExists"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.GetIfExists"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new EventHubsClusterResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new ClusterResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -378,18 +378,18 @@ public virtual async Task> GetIfExist /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string clusterName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string clusterName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterCollection.GetIfExists"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterCollection.GetIfExists"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken); + var response = _clusterRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, clusterName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new EventHubsClusterResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new ClusterResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -398,7 +398,7 @@ public virtual NullableResponse GetIfExists(string clu } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -408,7 +408,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterData.cs similarity index 56% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterData.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterData.cs index e1242fe29d2a..1ff03c061147 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterData.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.EventHubs.Models; @@ -14,18 +13,18 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A class representing the EventHubsCluster data model. + /// A class representing the Cluster data model. /// Single Event Hubs Cluster resource in List or Get operations. /// - public partial class EventHubsClusterData : TrackedResourceData + public partial class ClusterData : TrackedResourceData { - /// Initializes a new instance of EventHubsClusterData. + /// Initializes a new instance of ClusterData. /// The location. - public EventHubsClusterData(AzureLocation location) : base(location) + public ClusterData(AzureLocation location) : base(location) { } - /// Initializes a new instance of EventHubsClusterData. + /// Initializes a new instance of ClusterData. /// The id. /// The name. /// The resourceType. @@ -33,32 +32,40 @@ public EventHubsClusterData(AzureLocation location) : base(location) /// The tags. /// The location. /// Properties of the cluster SKU. - /// The UTC time when the Event Hubs Cluster was created. - /// The UTC time when the Event Hubs Cluster was last updated. + /// The UTC time when the Event Hubs Cluster was created. + /// Provisioning state of the Cluster. + /// The UTC time when the Event Hubs Cluster was last updated. /// The metric ID of the cluster resource. Provided by the service and not modifiable by the user. /// Status of the Cluster resource. /// A value that indicates whether Scaling is Supported. - internal EventHubsClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, EventHubsClusterSku sku, DateTimeOffset? createdOn, DateTimeOffset? updatedOn, string metricId, string status, bool? supportsScaling) : base(id, name, resourceType, systemData, tags, location) + /// Properties of the cluster upgrade preferences. + internal ClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ClusterSku sku, string createdAt, ProvisioningState? provisioningState, string updatedAt, string metricId, string status, bool? supportsScaling, UpgradePreferences upgradePreferences) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; - CreatedOn = createdOn; - UpdatedOn = updatedOn; + CreatedAt = createdAt; + ProvisioningState = provisioningState; + UpdatedAt = updatedAt; MetricId = metricId; Status = status; SupportsScaling = supportsScaling; + UpgradePreferences = upgradePreferences; } /// Properties of the cluster SKU. - public EventHubsClusterSku Sku { get; set; } + public ClusterSku Sku { get; set; } /// The UTC time when the Event Hubs Cluster was created. - public DateTimeOffset? CreatedOn { get; } + public string CreatedAt { get; } + /// Provisioning state of the Cluster. + public ProvisioningState? ProvisioningState { get; } /// The UTC time when the Event Hubs Cluster was last updated. - public DateTimeOffset? UpdatedOn { get; } + public string UpdatedAt { get; } /// The metric ID of the cluster resource. Provided by the service and not modifiable by the user. public string MetricId { get; } /// Status of the Cluster resource. public string Status { get; } /// A value that indicates whether Scaling is Supported. public bool? SupportsScaling { get; set; } + /// Properties of the cluster upgrade preferences. + public UpgradePreferences UpgradePreferences { get; set; } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterResource.cs similarity index 75% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterResource.cs index 11194dd6715e..b1481c1fc6f5 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsClusterResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ClusterResource.cs @@ -23,14 +23,14 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A Class representing an EventHubsCluster along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetEventHubsClusterResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsCluster method. + /// A Class representing a Cluster along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetClusterResource method. + /// Otherwise you can get one from its parent resource using the GetCluster method. /// - public partial class EventHubsClusterResource : ArmResource + public partial class ClusterResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The subscriptionId. /// The resourceGroupName. /// The clusterName. @@ -40,34 +40,34 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _eventHubsClusterClustersClientDiagnostics; - private readonly ClustersRestOperations _eventHubsClusterClustersRestClient; + private readonly ClientDiagnostics _clusterClientDiagnostics; + private readonly ClustersRestOperations _clusterRestClient; private readonly ClientDiagnostics _configurationClientDiagnostics; private readonly ConfigurationRestOperations _configurationRestClient; - private readonly EventHubsClusterData _data; + private readonly ClusterData _data; - /// Initializes a new instance of the class for mocking. - protected EventHubsClusterResource() + /// Initializes a new instance of the class for mocking. + protected ClusterResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal EventHubsClusterResource(ArmClient client, EventHubsClusterData data) : this(client, data.Id) + internal ClusterResource(ArmClient client, ClusterData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal EventHubsClusterResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ClusterResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _eventHubsClusterClustersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string eventHubsClusterClustersApiVersion); - _eventHubsClusterClustersRestClient = new ClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, eventHubsClusterClustersApiVersion); + _clusterClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string clusterApiVersion); + _clusterRestClient = new ClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, clusterApiVersion); _configurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ProviderConstants.DefaultProviderNamespace, Diagnostics); _configurationRestClient = new ConfigurationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -83,7 +83,7 @@ internal EventHubsClusterResource(ArmClient client, ResourceIdentifier id) : bas /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual EventHubsClusterData Data + public virtual ClusterData Data { get { @@ -113,16 +113,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.Get"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.Get"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsClusterResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ClusterResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -145,16 +145,16 @@ public virtual async Task> GetAsync(Cancellat /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.Get"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.Get"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _clusterRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsClusterResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ClusterResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -180,12 +180,12 @@ public virtual Response Get(CancellationToken cancella /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.Delete"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.Delete"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(_eventHubsClusterClustersClientDiagnostics, Pipeline, _eventHubsClusterClustersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _clusterRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new EventHubsArmOperation(_clusterClientDiagnostics, Pipeline, _clusterRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -214,12 +214,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.Delete"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.Delete"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(_eventHubsClusterClustersClientDiagnostics, Pipeline, _eventHubsClusterClustersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _clusterRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new EventHubsArmOperation(_clusterClientDiagnostics, Pipeline, _clusterRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -248,16 +248,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The properties of the Event Hubs Cluster which should be updated. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, EventHubsClusterData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.Update"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.Update"); scope.Start(); try { - var response = await _eventHubsClusterClustersRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(new EventHubsClusterOperationSource(Client), _eventHubsClusterClustersClientDiagnostics, Pipeline, _eventHubsClusterClustersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = await _clusterRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new EventHubsArmOperation(new ClusterOperationSource(Client), _clusterClientDiagnostics, Pipeline, _clusterRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -286,16 +286,16 @@ public virtual async Task> UpdateAsync(Wa /// The properties of the Event Hubs Cluster which should be updated. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, EventHubsClusterData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.Update"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.Update"); scope.Start(); try { - var response = _eventHubsClusterClustersRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(new EventHubsClusterOperationSource(Client), _eventHubsClusterClustersClientDiagnostics, Pipeline, _eventHubsClusterClustersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = _clusterRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); + var operation = new EventHubsArmOperation(new ClusterOperationSource(Client), _clusterClientDiagnostics, Pipeline, _clusterRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -324,8 +324,8 @@ public virtual ArmOperation Update(WaitUntil waitUntil /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetNamespacesAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _eventHubsClusterClustersRestClient.CreateListNamespacesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => JsonSerializer.Deserialize(e.GetRawText()), _eventHubsClusterClustersClientDiagnostics, Pipeline, "EventHubsClusterResource.GetNamespaces", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _clusterRestClient.CreateListNamespacesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => JsonSerializer.Deserialize(e.GetRawText()), _clusterClientDiagnostics, Pipeline, "ClusterResource.GetNamespaces", "value", null, cancellationToken); } /// @@ -345,8 +345,68 @@ public virtual AsyncPageable GetNamespacesAsync(CancellationToken c /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetNamespaces(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _eventHubsClusterClustersRestClient.CreateListNamespacesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => JsonSerializer.Deserialize(e.GetRawText()), _eventHubsClusterClustersClientDiagnostics, Pipeline, "EventHubsClusterResource.GetNamespaces", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _clusterRestClient.CreateListNamespacesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => JsonSerializer.Deserialize(e.GetRawText()), _clusterClientDiagnostics, Pipeline, "ClusterResource.GetNamespaces", "value", null, cancellationToken); + } + + /// + /// Trigger pending cluster upgrades if any. Bypasses any upgrade preferences set by customer. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/triggerUpgrade + /// + /// + /// Operation Id + /// Clusters_TriggerUpgradePost + /// + /// + /// + /// The cancellation token to use. + public virtual async Task TriggerUpgradePostAsync(CancellationToken cancellationToken = default) + { + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.TriggerUpgradePost"); + scope.Start(); + try + { + var response = await _clusterRestClient.TriggerUpgradePostAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Trigger pending cluster upgrades if any. Bypasses any upgrade preferences set by customer. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/triggerUpgrade + /// + /// + /// Operation Id + /// Clusters_TriggerUpgradePost + /// + /// + /// + /// The cancellation token to use. + public virtual Response TriggerUpgradePost(CancellationToken cancellationToken = default) + { + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.TriggerUpgradePost"); + scope.Start(); + try + { + var response = _clusterRestClient.TriggerUpgradePost(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// @@ -369,7 +429,7 @@ public virtual async Task> PatchCo { Argument.AssertNotNull(clusterQuotaConfigurationProperties, nameof(clusterQuotaConfigurationProperties)); - using var scope = _configurationClientDiagnostics.CreateScope("EventHubsClusterResource.PatchConfiguration"); + using var scope = _configurationClientDiagnostics.CreateScope("ClusterResource.PatchConfiguration"); scope.Start(); try { @@ -403,7 +463,7 @@ public virtual Response PatchConfiguration( { Argument.AssertNotNull(clusterQuotaConfigurationProperties, nameof(clusterQuotaConfigurationProperties)); - using var scope = _configurationClientDiagnostics.CreateScope("EventHubsClusterResource.PatchConfiguration"); + using var scope = _configurationClientDiagnostics.CreateScope("ClusterResource.PatchConfiguration"); scope.Start(); try { @@ -433,7 +493,7 @@ public virtual Response PatchConfiguration( /// The cancellation token to use. public virtual async Task> GetConfigurationAsync(CancellationToken cancellationToken = default) { - using var scope = _configurationClientDiagnostics.CreateScope("EventHubsClusterResource.GetConfiguration"); + using var scope = _configurationClientDiagnostics.CreateScope("ClusterResource.GetConfiguration"); scope.Start(); try { @@ -463,7 +523,7 @@ public virtual async Task> GetConf /// The cancellation token to use. public virtual Response GetConfiguration(CancellationToken cancellationToken = default) { - using var scope = _configurationClientDiagnostics.CreateScope("EventHubsClusterResource.GetConfiguration"); + using var scope = _configurationClientDiagnostics.CreateScope("ClusterResource.GetConfiguration"); scope.Start(); try { @@ -494,12 +554,12 @@ public virtual Response GetConfiguration(Ca /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.AddTag"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.AddTag"); scope.Start(); try { @@ -508,13 +568,13 @@ public virtual async Task> AddTagAsync(string var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new EventHubsClusterData(current.Location); + var patch = new ClusterData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -548,12 +608,12 @@ public virtual async Task> AddTagAsync(string /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.AddTag"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.AddTag"); scope.Start(); try { @@ -562,13 +622,13 @@ public virtual Response AddTag(string key, string valu var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _eventHubsClusterClustersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new EventHubsClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _clusterRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new EventHubsClusterData(current.Location); + var patch = new ClusterData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -601,11 +661,11 @@ public virtual Response AddTag(string key, string valu /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.SetTags"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.SetTags"); scope.Start(); try { @@ -615,13 +675,13 @@ public virtual async Task> SetTagsAsync(IDict var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new EventHubsClusterData(current.Location); + var patch = new ClusterData(current.Location); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -650,11 +710,11 @@ public virtual async Task> SetTagsAsync(IDict /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.SetTags"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.SetTags"); scope.Start(); try { @@ -664,13 +724,13 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.RemoveTag"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.RemoveTag"); scope.Start(); try { @@ -712,13 +772,13 @@ public virtual async Task> RemoveTagAsync(str var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _eventHubsClusterClustersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _clusterRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new EventHubsClusterData(current.Location); + var patch = new ClusterData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -751,11 +811,11 @@ public virtual async Task> RemoveTagAsync(str /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _eventHubsClusterClustersClientDiagnostics.CreateScope("EventHubsClusterResource.RemoveTag"); + using var scope = _clusterClientDiagnostics.CreateScope("ClusterResource.RemoveTag"); scope.Start(); try { @@ -764,13 +824,13 @@ public virtual Response RemoveTag(string key, Cancella var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _eventHubsClusterClustersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new EventHubsClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _clusterRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ClusterResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new EventHubsClusterData(current.Location); + var patch = new ClusterData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceCollection.cs similarity index 65% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceCollection.cs index cff74c84461f..89c34fc510b8 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsNamespaces method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEHNamespaces method from an instance of . /// - public partial class EventHubsNamespaceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class EHNamespaceCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _eventHubsNamespaceNamespacesClientDiagnostics; - private readonly NamespacesRestOperations _eventHubsNamespaceNamespacesRestClient; + private readonly ClientDiagnostics _ehNamespaceNamespacesClientDiagnostics; + private readonly NamespacesRestOperations _ehNamespaceNamespacesRestClient; - /// Initializes a new instance of the class for mocking. - protected EventHubsNamespaceCollection() + /// Initializes a new instance of the class for mocking. + protected EHNamespaceCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal EventHubsNamespaceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal EHNamespaceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _eventHubsNamespaceNamespacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", EventHubsNamespaceResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(EventHubsNamespaceResource.ResourceType, out string eventHubsNamespaceNamespacesApiVersion); - _eventHubsNamespaceNamespacesRestClient = new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, eventHubsNamespaceNamespacesApiVersion); + _ehNamespaceNamespacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", EHNamespaceResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(EHNamespaceResource.ResourceType, out string ehNamespaceNamespacesApiVersion); + _ehNamespaceNamespacesRestClient = new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ehNamespaceNamespacesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,17 +73,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string namespaceName, EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string namespaceName, EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.CreateOrUpdate"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(new EventHubsNamespaceOperationSource(Client), _eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, _eventHubsNamespaceNamespacesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data).Request, response, OperationFinalStateVia.Location); + var response = await _ehNamespaceNamespacesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data, cancellationToken).ConfigureAwait(false); + var operation = new EventHubsArmOperation(new EHNamespaceOperationSource(Client), _ehNamespaceNamespacesClientDiagnostics, Pipeline, _ehNamespaceNamespacesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,17 +114,17 @@ public virtual async Task> CreateOrUpda /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string namespaceName, EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string namespaceName, EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.CreateOrUpdate"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.CreateOrUpdate"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data, cancellationToken); - var operation = new EventHubsArmOperation(new EventHubsNamespaceOperationSource(Client), _eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, _eventHubsNamespaceNamespacesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data).Request, response, OperationFinalStateVia.Location); + var response = _ehNamespaceNamespacesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data, cancellationToken); + var operation = new EventHubsArmOperation(new EHNamespaceOperationSource(Client), _ehNamespaceNamespacesClientDiagnostics, Pipeline, _ehNamespaceNamespacesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string namespaceName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.Get"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.Get"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken).ConfigureAwait(false); + var response = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -190,18 +190,18 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string namespaceName, CancellationToken cancellationToken = default) + public virtual Response Get(string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.Get"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.Get"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken); + var response = _ehNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -224,12 +224,12 @@ public virtual Response Get(string namespaceName, Ca /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _eventHubsNamespaceNamespacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _eventHubsNamespaceNamespacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EventHubsNamespaceResource(Client, EventHubsNamespaceData.DeserializeEventHubsNamespaceData(e)), _eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, "EventHubsNamespaceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _ehNamespaceNamespacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ehNamespaceNamespacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EHNamespaceResource(Client, EHNamespaceData.DeserializeEHNamespaceData(e)), _ehNamespaceNamespacesClientDiagnostics, Pipeline, "EHNamespaceCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -246,12 +246,12 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _eventHubsNamespaceNamespacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _eventHubsNamespaceNamespacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EventHubsNamespaceResource(Client, EventHubsNamespaceData.DeserializeEventHubsNamespaceData(e)), _eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, "EventHubsNamespaceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _ehNamespaceNamespacesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ehNamespaceNamespacesRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EHNamespaceResource(Client, EHNamespaceData.DeserializeEHNamespaceData(e)), _ehNamespaceNamespacesClientDiagnostics, Pipeline, "EHNamespaceCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string namespaceName, Canc { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.Exists"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.Exists"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -310,11 +310,11 @@ public virtual Response Exists(string namespaceName, CancellationToken can { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.Exists"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.Exists"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken); + var response = _ehNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -341,18 +341,18 @@ public virtual Response Exists(string namespaceName, CancellationToken can /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string namespaceName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.GetIfExists"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.GetIfExists"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -378,18 +378,18 @@ public virtual async Task> GetIfExi /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual NullableResponse GetIfExists(string namespaceName, CancellationToken cancellationToken = default) + public virtual NullableResponse GetIfExists(string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(namespaceName, nameof(namespaceName)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceCollection.GetIfExists"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceCollection.GetIfExists"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken); + var response = _ehNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, cancellationToken: cancellationToken); if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -398,7 +398,7 @@ public virtual NullableResponse GetIfExists(string n } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -408,7 +408,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceData.cs similarity index 83% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceData.cs index 96fad8569848..4df8b4fb13c7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceData.cs @@ -14,19 +14,19 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A class representing the EventHubsNamespace data model. + /// A class representing the EHNamespace data model. /// Single Namespace item in List or Get Operation /// - public partial class EventHubsNamespaceData : TrackedResourceData + public partial class EHNamespaceData : TrackedResourceData { - /// Initializes a new instance of EventHubsNamespaceData. + /// Initializes a new instance of EHNamespaceData. /// The location. - public EventHubsNamespaceData(AzureLocation location) : base(location) + public EHNamespaceData(AzureLocation location) : base(location) { PrivateEndpointConnections = new ChangeTrackingList(); } - /// Initializes a new instance of EventHubsNamespaceData. + /// Initializes a new instance of EHNamespaceData. /// The id. /// The name. /// The resourceType. @@ -52,7 +52,7 @@ 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. - 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) : base(id, name, resourceType, systemData, tags, location) + internal EHNamespaceData(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, string clusterArmId, string metricId, bool? isAutoInflateEnabled, EventHubsPublicNetworkAccess? publicNetworkAccess, int? maximumThroughputUnits, bool? kafkaEnabled, bool? zoneRedundant, Encryption encryption, IList privateEndpointConnections, bool? disableLocalAuth, string alternateName) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Identity = identity; @@ -92,7 +92,7 @@ internal EventHubsNamespaceData(ResourceIdentifier id, string name, ResourceType /// Endpoint you can use to perform Service Bus operations. public string ServiceBusEndpoint { get; } /// Cluster ARM ID of the Namespace. - public ResourceIdentifier ClusterArmId { get; set; } + public string ClusterArmId { get; set; } /// Identifier for Azure Insights metrics. public string MetricId { get; } /// Value that indicates whether AutoInflate is enabled for eventhub namespace. @@ -106,7 +106,7 @@ internal EventHubsNamespaceData(ResourceIdentifier id, string name, ResourceType /// Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones. public bool? ZoneRedundant { get; set; } /// Properties of BYOK Encryption description. - public EventHubsEncryption Encryption { get; set; } + public Encryption Encryption { get; set; } /// List of private endpoint connections. public IList PrivateEndpointConnections { get; } /// This property disables SAS authentication for the Event Hubs namespace. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceResource.cs similarity index 83% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceResource.cs index 53cca2f090b1..8d18f45e5ff6 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EHNamespaceResource.cs @@ -21,14 +21,14 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A Class representing an EventHubsNamespace along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetEventHubsNamespaceResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsNamespace method. + /// A Class representing an EHNamespace along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetEHNamespaceResource method. + /// Otherwise you can get one from its parent resource using the GetEHNamespace method. /// - public partial class EventHubsNamespaceResource : ArmResource + public partial class EHNamespaceResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The subscriptionId. /// The resourceGroupName. /// The namespaceName. @@ -38,8 +38,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _eventHubsNamespaceNamespacesClientDiagnostics; - private readonly NamespacesRestOperations _eventHubsNamespaceNamespacesRestClient; + private readonly ClientDiagnostics _ehNamespaceNamespacesClientDiagnostics; + private readonly NamespacesRestOperations _ehNamespaceNamespacesRestClient; private readonly ClientDiagnostics _privateLinkResourcesClientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly ClientDiagnostics _networkSecurityPerimeterConfigurationClientDiagnostics; @@ -48,30 +48,30 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly NetworkSecurityPerimeterConfigurationsRestOperations _networkSecurityPerimeterConfigurationsRestClient; private readonly ClientDiagnostics _disasterRecoveryConfigsClientDiagnostics; private readonly DisasterRecoveryConfigsRestOperations _disasterRecoveryConfigsRestClient; - private readonly EventHubsNamespaceData _data; + private readonly EHNamespaceData _data; - /// Initializes a new instance of the class for mocking. - protected EventHubsNamespaceResource() + /// Initializes a new instance of the class for mocking. + protected EHNamespaceResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal EventHubsNamespaceResource(ArmClient client, EventHubsNamespaceData data) : this(client, data.Id) + internal EHNamespaceResource(ArmClient client, EHNamespaceData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal EventHubsNamespaceResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal EHNamespaceResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _eventHubsNamespaceNamespacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string eventHubsNamespaceNamespacesApiVersion); - _eventHubsNamespaceNamespacesRestClient = new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, eventHubsNamespaceNamespacesApiVersion); + _ehNamespaceNamespacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string ehNamespaceNamespacesApiVersion); + _ehNamespaceNamespacesRestClient = new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ehNamespaceNamespacesApiVersion); _privateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ProviderConstants.DefaultProviderNamespace, Diagnostics); _privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _networkSecurityPerimeterConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -93,7 +93,7 @@ internal EventHubsNamespaceResource(ArmClient client, ResourceIdentifier id) : b /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual EventHubsNamespaceData Data + public virtual EHNamespaceData Data { get { @@ -109,14 +109,14 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets an object representing a EventHubsNetworkRuleSetResource along with the instance operations that can be performed on it in the EventHubsNamespace. - /// Returns a object. - public virtual EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSet() + /// Gets an object representing a NetworkRuleSetResource along with the instance operations that can be performed on it in the EHNamespace. + /// Returns a object. + public virtual NetworkRuleSetResource GetNetworkRuleSet() { - return new EventHubsNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); + return new NetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } - /// Gets a collection of EventHubsNamespaceAuthorizationRuleResources in the EventHubsNamespace. + /// Gets a collection of EventHubsNamespaceAuthorizationRuleResources in the EHNamespace. /// An object representing collection of EventHubsNamespaceAuthorizationRuleResources and their operations over a EventHubsNamespaceAuthorizationRuleResource. public virtual EventHubsNamespaceAuthorizationRuleCollection GetEventHubsNamespaceAuthorizationRules() { @@ -169,7 +169,7 @@ public virtual Response GetEventHub return GetEventHubsNamespaceAuthorizationRules().Get(authorizationRuleName, cancellationToken); } - /// Gets a collection of EventHubsPrivateEndpointConnectionResources in the EventHubsNamespace. + /// Gets a collection of EventHubsPrivateEndpointConnectionResources in the EHNamespace. /// An object representing collection of EventHubsPrivateEndpointConnectionResources and their operations over a EventHubsPrivateEndpointConnectionResource. public virtual EventHubsPrivateEndpointConnectionCollection GetEventHubsPrivateEndpointConnections() { @@ -222,7 +222,7 @@ public virtual Response GetEventHubs return GetEventHubsPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } - /// Gets a collection of EventHubsDisasterRecoveryResources in the EventHubsNamespace. + /// Gets a collection of EventHubsDisasterRecoveryResources in the EHNamespace. /// An object representing collection of EventHubsDisasterRecoveryResources and their operations over a EventHubsDisasterRecoveryResource. public virtual EventHubsDisasterRecoveryCollection GetEventHubsDisasterRecoveries() { @@ -275,7 +275,7 @@ public virtual Response GetEventHubsDisasterR return GetEventHubsDisasterRecoveries().Get(@alias, cancellationToken); } - /// Gets a collection of EventHubResources in the EventHubsNamespace. + /// Gets a collection of EventHubResources in the EHNamespace. /// An object representing collection of EventHubResources and their operations over a EventHubResource. public virtual EventHubCollection GetEventHubs() { @@ -328,7 +328,7 @@ public virtual Response GetEventHub(string eventHubName, Cance return GetEventHubs().Get(eventHubName, cancellationToken); } - /// Gets a collection of EventHubsSchemaGroupResources in the EventHubsNamespace. + /// Gets a collection of EventHubsSchemaGroupResources in the EHNamespace. /// An object representing collection of EventHubsSchemaGroupResources and their operations over a EventHubsSchemaGroupResource. public virtual EventHubsSchemaGroupCollection GetEventHubsSchemaGroups() { @@ -336,6 +336,7 @@ public virtual EventHubsSchemaGroupCollection GetEventHubsSchemaGroups() } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -358,6 +359,7 @@ public virtual async Task> GetEventHubsSc } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -379,7 +381,7 @@ public virtual Response GetEventHubsSchemaGroup(st return GetEventHubsSchemaGroups().Get(schemaGroupName, cancellationToken); } - /// Gets a collection of EventHubsApplicationGroupResources in the EventHubsNamespace. + /// Gets a collection of EventHubsApplicationGroupResources in the EHNamespace. /// An object representing collection of EventHubsApplicationGroupResources and their operations over a EventHubsApplicationGroupResource. public virtual EventHubsApplicationGroupCollection GetEventHubsApplicationGroups() { @@ -446,16 +448,16 @@ public virtual Response GetEventHubsApplicati /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Get"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.Get"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -478,16 +480,16 @@ public virtual async Task> GetAsync(Cancell /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Get"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.Get"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _ehNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -513,12 +515,12 @@ public virtual Response Get(CancellationToken cancel /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Delete"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.Delete"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(_eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, _eventHubsNamespaceNamespacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _ehNamespaceNamespacesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new EventHubsArmOperation(_ehNamespaceNamespacesClientDiagnostics, Pipeline, _ehNamespaceNamespacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -547,12 +549,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Delete"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.Delete"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(_eventHubsNamespaceNamespacesClientDiagnostics, Pipeline, _eventHubsNamespaceNamespacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _ehNamespaceNamespacesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new EventHubsArmOperation(_ehNamespaceNamespacesClientDiagnostics, Pipeline, _ehNamespaceNamespacesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -580,16 +582,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Parameters for updating a namespace resource. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Update"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.Update"); scope.Start(); try { - var response = await _eventHubsNamespaceNamespacesRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + var response = await _ehNamespaceNamespacesRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -614,16 +616,16 @@ public virtual async Task> UpdateAsync(Even /// Parameters for updating a namespace resource. /// The cancellation token to use. /// is null. - public virtual Response Update(EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public virtual Response Update(EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.Update"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.Update"); scope.Start(); try { - var response = _eventHubsNamespaceNamespacesRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - return Response.FromValue(new EventHubsNamespaceResource(Client, response.Value), response.GetRawResponse()); + var response = _ehNamespaceNamespacesRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); + return Response.FromValue(new EHNamespaceResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -646,11 +648,11 @@ public virtual Response Update(EventHubsNamespaceDat /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetPrivateLinkResourcesAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetPrivateLinkResourcesAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _privateLinkResourcesRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, EventHubsPrivateLinkResourceData.DeserializeEventHubsPrivateLinkResourceData, _privateLinkResourcesClientDiagnostics, Pipeline, "EventHubsNamespaceResource.GetPrivateLinkResources", "value", null, cancellationToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, EventHubsPrivateLinkResource.DeserializeEventHubsPrivateLinkResource, _privateLinkResourcesClientDiagnostics, Pipeline, "EHNamespaceResource.GetPrivateLinkResources", "value", null, cancellationToken); } /// @@ -667,11 +669,11 @@ public virtual AsyncPageable GetPrivateLinkRes /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetPrivateLinkResources(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetPrivateLinkResources(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _privateLinkResourcesRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, EventHubsPrivateLinkResourceData.DeserializeEventHubsPrivateLinkResourceData, _privateLinkResourcesClientDiagnostics, Pipeline, "EventHubsNamespaceResource.GetPrivateLinkResources", "value", null, cancellationToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, EventHubsPrivateLinkResource.DeserializeEventHubsPrivateLinkResource, _privateLinkResourcesClientDiagnostics, Pipeline, "EHNamespaceResource.GetPrivateLinkResources", "value", null, cancellationToken); } /// @@ -692,7 +694,7 @@ public virtual Pageable GetPrivateLinkResource public virtual AsyncPageable GetNetworkSecurityPerimeterConfigurationsAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _networkSecurityPerimeterConfigurationRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, EventHubsNetworkSecurityPerimeterConfiguration.DeserializeEventHubsNetworkSecurityPerimeterConfiguration, _networkSecurityPerimeterConfigurationClientDiagnostics, Pipeline, "EventHubsNamespaceResource.GetNetworkSecurityPerimeterConfigurations", "value", null, cancellationToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, EventHubsNetworkSecurityPerimeterConfiguration.DeserializeEventHubsNetworkSecurityPerimeterConfiguration, _networkSecurityPerimeterConfigurationClientDiagnostics, Pipeline, "EHNamespaceResource.GetNetworkSecurityPerimeterConfigurations", "value", null, cancellationToken); } /// @@ -713,7 +715,7 @@ public virtual AsyncPageable Get public virtual Pageable GetNetworkSecurityPerimeterConfigurations(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _networkSecurityPerimeterConfigurationRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, EventHubsNetworkSecurityPerimeterConfiguration.DeserializeEventHubsNetworkSecurityPerimeterConfiguration, _networkSecurityPerimeterConfigurationClientDiagnostics, Pipeline, "EventHubsNamespaceResource.GetNetworkSecurityPerimeterConfigurations", "value", null, cancellationToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, EventHubsNetworkSecurityPerimeterConfiguration.DeserializeEventHubsNetworkSecurityPerimeterConfiguration, _networkSecurityPerimeterConfigurationClientDiagnostics, Pipeline, "EHNamespaceResource.GetNetworkSecurityPerimeterConfigurations", "value", null, cancellationToken); } /// @@ -738,7 +740,7 @@ public virtual async Task CreateOrUpdateNetworkSecurityPerimeterCo { Argument.AssertNotNullOrEmpty(resourceAssociationName, nameof(resourceAssociationName)); - using var scope = _networkSecurityPerimeterConfigurationsClientDiagnostics.CreateScope("EventHubsNamespaceResource.CreateOrUpdateNetworkSecurityPerimeterConfiguration"); + using var scope = _networkSecurityPerimeterConfigurationsClientDiagnostics.CreateScope("EHNamespaceResource.CreateOrUpdateNetworkSecurityPerimeterConfiguration"); scope.Start(); try { @@ -777,7 +779,7 @@ public virtual ArmOperation CreateOrUpdateNetworkSecurityPerimeterConfiguration( { Argument.AssertNotNullOrEmpty(resourceAssociationName, nameof(resourceAssociationName)); - using var scope = _networkSecurityPerimeterConfigurationsClientDiagnostics.CreateScope("EventHubsNamespaceResource.CreateOrUpdateNetworkSecurityPerimeterConfiguration"); + using var scope = _networkSecurityPerimeterConfigurationsClientDiagnostics.CreateScope("EHNamespaceResource.CreateOrUpdateNetworkSecurityPerimeterConfiguration"); scope.Start(); try { @@ -814,7 +816,7 @@ public virtual async Task> CheckEventH { Argument.AssertNotNull(content, nameof(content)); - using var scope = _disasterRecoveryConfigsClientDiagnostics.CreateScope("EventHubsNamespaceResource.CheckEventHubsDisasterRecoveryNameAvailability"); + using var scope = _disasterRecoveryConfigsClientDiagnostics.CreateScope("EHNamespaceResource.CheckEventHubsDisasterRecoveryNameAvailability"); scope.Start(); try { @@ -848,7 +850,7 @@ public virtual Response CheckEventHubsDisasterR { Argument.AssertNotNull(content, nameof(content)); - using var scope = _disasterRecoveryConfigsClientDiagnostics.CreateScope("EventHubsNamespaceResource.CheckEventHubsDisasterRecoveryNameAvailability"); + using var scope = _disasterRecoveryConfigsClientDiagnostics.CreateScope("EHNamespaceResource.CheckEventHubsDisasterRecoveryNameAvailability"); scope.Start(); try { @@ -879,12 +881,12 @@ public virtual Response CheckEventHubsDisasterR /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.AddTag"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.AddTag"); scope.Start(); try { @@ -893,13 +895,13 @@ public virtual async Task> AddTagAsync(stri var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new EHNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new EventHubsNamespaceData(current.Location); + var patch = new EHNamespaceData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -933,12 +935,12 @@ public virtual async Task> AddTagAsync(stri /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.AddTag"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.AddTag"); scope.Start(); try { @@ -947,13 +949,13 @@ public virtual Response AddTag(string key, string va var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _eventHubsNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new EventHubsNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _ehNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new EHNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new EventHubsNamespaceData(current.Location); + var patch = new EHNamespaceData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -986,11 +988,11 @@ public virtual Response AddTag(string key, string va /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.SetTags"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.SetTags"); scope.Start(); try { @@ -1000,13 +1002,13 @@ public virtual async Task> SetTagsAsync(IDi var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new EHNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new EventHubsNamespaceData(current.Location); + var patch = new EHNamespaceData(current.Location); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -1035,11 +1037,11 @@ public virtual async Task> SetTagsAsync(IDi /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.SetTags"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.SetTags"); scope.Start(); try { @@ -1049,13 +1051,13 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.RemoveTag"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.RemoveTag"); scope.Start(); try { @@ -1097,13 +1099,13 @@ public virtual async Task> RemoveTagAsync(s var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _eventHubsNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new EventHubsNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _ehNamespaceNamespacesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new EHNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new EventHubsNamespaceData(current.Location); + var patch = new EHNamespaceData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -1136,11 +1138,11 @@ public virtual async Task> RemoveTagAsync(s /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _eventHubsNamespaceNamespacesClientDiagnostics.CreateScope("EventHubsNamespaceResource.RemoveTag"); + using var scope = _ehNamespaceNamespacesClientDiagnostics.CreateScope("EHNamespaceResource.RemoveTag"); scope.Start(); try { @@ -1149,13 +1151,13 @@ public virtual Response RemoveTag(string key, Cancel var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _eventHubsNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new EventHubsNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _ehNamespaceNamespacesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new EHNamespaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new EventHubsNamespaceData(current.Location); + var patch = new EHNamespaceData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs index f534b81624fd..8a3922bce660 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs @@ -21,8 +21,8 @@ namespace Azure.ResourceManager.EventHubs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubs method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEventHubs method from an instance of . /// public partial class EventHubCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -49,8 +49,8 @@ internal EventHubCollection(ArmClient client, ResourceIdentifier id) : base(clie internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EventHubsNamespaceResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EventHubsNamespaceResource.ResourceType), nameof(id)); + if (id.ResourceType != EHNamespaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EHNamespaceResource.ResourceType), nameof(id)); } /// diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs index e1a7f6208f61..3ee5caeb772c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs @@ -20,7 +20,7 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing an EventHub along with the instance operations that can be performed on it. /// If you have a you can construct an /// from an instance of using the GetEventHubResource method. - /// Otherwise you can get one from its parent resource using the GetEventHub method. + /// Otherwise you can get one from its parent resource using the GetEventHub method. /// public partial class EventHubResource : ArmResource { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs index fc19577fdcff..b8f16f4adae5 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs @@ -21,8 +21,8 @@ namespace Azure.ResourceManager.EventHubs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsApplicationGroups method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEventHubsApplicationGroups method from an instance of . /// public partial class EventHubsApplicationGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -49,8 +49,8 @@ internal EventHubsApplicationGroupCollection(ArmClient client, ResourceIdentifie internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EventHubsNamespaceResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EventHubsNamespaceResource.ResourceType), nameof(id)); + if (id.ResourceType != EHNamespaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EHNamespaceResource.ResourceType), nameof(id)); } /// diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs index b9325ae7b7de..ccf4a2c0de2c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs @@ -20,7 +20,7 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing an EventHubsApplicationGroup along with the instance operations that can be performed on it. /// If you have a you can construct an /// from an instance of using the GetEventHubsApplicationGroupResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsApplicationGroup method. + /// Otherwise you can get one from its parent resource using the GetEventHubsApplicationGroup method. /// public partial class EventHubsApplicationGroupResource : ArmResource { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs index b64739bb5155..ad3f000be21b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs @@ -21,8 +21,8 @@ namespace Azure.ResourceManager.EventHubs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsDisasterRecoveries method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEventHubsDisasterRecoveries method from an instance of . /// public partial class EventHubsDisasterRecoveryCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -49,8 +49,8 @@ internal EventHubsDisasterRecoveryCollection(ArmClient client, ResourceIdentifie internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EventHubsNamespaceResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EventHubsNamespaceResource.ResourceType), nameof(id)); + if (id.ResourceType != EHNamespaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EHNamespaceResource.ResourceType), nameof(id)); } /// diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs index 6e5031940ce4..425609cfc072 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs @@ -20,7 +20,7 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing an EventHubsDisasterRecovery along with the instance operations that can be performed on it. /// If you have a you can construct an /// from an instance of using the GetEventHubsDisasterRecoveryResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsDisasterRecovery method. + /// Otherwise you can get one from its parent resource using the GetEventHubsDisasterRecovery method. /// public partial class EventHubsDisasterRecoveryResource : ArmResource { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs index 2d880fe023eb..441670c81c07 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs @@ -21,8 +21,8 @@ namespace Azure.ResourceManager.EventHubs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsNamespaceAuthorizationRules method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEventHubsNamespaceAuthorizationRules method from an instance of . /// public partial class EventHubsNamespaceAuthorizationRuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -49,8 +49,8 @@ internal EventHubsNamespaceAuthorizationRuleCollection(ArmClient client, Resourc internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EventHubsNamespaceResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EventHubsNamespaceResource.ResourceType), nameof(id)); + if (id.ResourceType != EHNamespaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EHNamespaceResource.ResourceType), nameof(id)); } /// diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs index 0c049fe53ae1..5853b69fab8f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs @@ -21,7 +21,7 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing an EventHubsNamespaceAuthorizationRule along with the instance operations that can be performed on it. /// If you have a you can construct an /// from an instance of using the GetEventHubsNamespaceAuthorizationRuleResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsNamespaceAuthorizationRule method. + /// Otherwise you can get one from its parent resource using the GetEventHubsNamespaceAuthorizationRule method. /// public partial class EventHubsNamespaceAuthorizationRuleResource : ArmResource { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs index da84c7ba825e..03d303f074c9 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs @@ -21,8 +21,8 @@ namespace Azure.ResourceManager.EventHubs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsPrivateEndpointConnections method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEventHubsPrivateEndpointConnections method from an instance of . /// public partial class EventHubsPrivateEndpointConnectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -49,8 +49,8 @@ internal EventHubsPrivateEndpointConnectionCollection(ArmClient client, Resource internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EventHubsNamespaceResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EventHubsNamespaceResource.ResourceType), nameof(id)); + if (id.ResourceType != EHNamespaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EHNamespaceResource.ResourceType), nameof(id)); } /// diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionData.cs index d556009593a7..c1e74984c66a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionData.cs @@ -32,7 +32,7 @@ public EventHubsPrivateEndpointConnectionData() /// Details about the state of the connection. /// Provisioning state of the Private Endpoint Connection. /// The geo-location where the resource lives. - internal EventHubsPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, WritableSubResource privateEndpoint, EventHubsPrivateLinkServiceConnectionState connectionState, EventHubsPrivateEndpointConnectionProvisioningState? provisioningState, AzureLocation? location) : base(id, name, resourceType, systemData) + internal EventHubsPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, WritableSubResource privateEndpoint, ConnectionState connectionState, EndPointProvisioningState? provisioningState, AzureLocation? location) : base(id, name, resourceType, systemData) { PrivateEndpoint = privateEndpoint; ConnectionState = connectionState; @@ -55,9 +55,9 @@ public ResourceIdentifier PrivateEndpointId } /// Details about the state of the connection. - public EventHubsPrivateLinkServiceConnectionState ConnectionState { get; set; } + public ConnectionState ConnectionState { get; set; } /// Provisioning state of the Private Endpoint Connection. - public EventHubsPrivateEndpointConnectionProvisioningState? ProvisioningState { get; set; } + public EndPointProvisioningState? ProvisioningState { get; set; } /// The geo-location where the resource lives. public AzureLocation? Location { get; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs index c58b588b0a11..333f66c6f1c0 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing an EventHubsPrivateEndpointConnection along with the instance operations that can be performed on it. /// If you have a you can construct an /// from an instance of using the GetEventHubsPrivateEndpointConnectionResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsPrivateEndpointConnection method. + /// Otherwise you can get one from its parent resource using the GetEventHubsPrivateEndpointConnection method. /// public partial class EventHubsPrivateEndpointConnectionResource : ArmResource { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs index 505e61f4c96a..b8cb90281770 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs @@ -21,8 +21,8 @@ namespace Azure.ResourceManager.EventHubs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetEventHubsSchemaGroups method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEventHubsSchemaGroups method from an instance of . /// public partial class EventHubsSchemaGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -49,11 +49,12 @@ internal EventHubsSchemaGroupCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != EventHubsNamespaceResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EventHubsNamespaceResource.ResourceType), nameof(id)); + if (id.ResourceType != EHNamespaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, EHNamespaceResource.ResourceType), nameof(id)); } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path @@ -94,6 +95,7 @@ public virtual async Task> CreateOrUp } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path @@ -134,6 +136,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -170,6 +173,7 @@ public virtual async Task> GetAsync(strin } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs index 28cc2618fe5a..3731589b51c1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs @@ -20,7 +20,7 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing an EventHubsSchemaGroup along with the instance operations that can be performed on it. /// If you have a you can construct an /// from an instance of using the GetEventHubsSchemaGroupResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsSchemaGroup method. + /// Otherwise you can get one from its parent resource using the GetEventHubsSchemaGroup method. /// public partial class EventHubsSchemaGroupResource : ArmResource { @@ -91,6 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -122,6 +123,7 @@ public virtual async Task> GetAsync(Cance } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -153,6 +155,7 @@ public virtual Response Get(CancellationToken canc } /// + /// Deletes an EventHub schema group. /// /// /// Request Path @@ -186,6 +189,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// + /// Deletes an EventHub schema group. /// /// /// Request Path @@ -219,6 +223,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path @@ -256,6 +261,7 @@ public virtual async Task> UpdateAsyn } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path 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 31292edb00c5..ad5960441c62 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/EventHubsExtensions.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/EventHubsExtensions.cs @@ -36,51 +36,51 @@ private static MockableEventHubsSubscriptionResource GetMockableEventHubsSubscri } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static EventHubsClusterResource GetEventHubsClusterResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ClusterResource GetClusterResource(this ArmClient client, ResourceIdentifier id) { - return GetMockableEventHubsArmClient(client).GetEventHubsClusterResource(id); + return GetMockableEventHubsArmClient(client).GetClusterResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static EventHubsNamespaceResource GetEventHubsNamespaceResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static EHNamespaceResource GetEHNamespaceResource(this ArmClient client, ResourceIdentifier id) { - return GetMockableEventHubsArmClient(client).GetEventHubsNamespaceResource(id); + return GetMockableEventHubsArmClient(client).GetEHNamespaceResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSetResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetworkRuleSetResource GetNetworkRuleSetResource(this ArmClient client, ResourceIdentifier id) { - return GetMockableEventHubsArmClient(client).GetEventHubsNetworkRuleSetResource(id); + return GetMockableEventHubsArmClient(client).GetNetworkRuleSetResource(id); } /// @@ -228,17 +228,17 @@ public static EventHubsApplicationGroupResource GetEventHubsApplicationGroupReso } /// - /// Gets a collection of EventHubsClusterResources in the ResourceGroupResource. + /// Gets a collection of ClusterResources in the ResourceGroupResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// An object representing collection of EventHubsClusterResources and their operations over a EventHubsClusterResource. - public static EventHubsClusterCollection GetEventHubsClusters(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ClusterResources and their operations over a ClusterResource. + public static ClusterCollection GetClusters(this ResourceGroupResource resourceGroupResource) { - return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEventHubsClusters(); + return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetClusters(); } /// @@ -255,7 +255,7 @@ public static EventHubsClusterCollection GetEventHubsClusters(this ResourceGroup /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -264,9 +264,9 @@ public static EventHubsClusterCollection GetEventHubsClusters(this ResourceGroup /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetEventHubsClusterAsync(this ResourceGroupResource resourceGroupResource, string clusterName, CancellationToken cancellationToken = default) + public static async Task> GetClusterAsync(this ResourceGroupResource resourceGroupResource, string clusterName, CancellationToken cancellationToken = default) { - return await GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEventHubsClusterAsync(clusterName, cancellationToken).ConfigureAwait(false); + return await GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetClusterAsync(clusterName, cancellationToken).ConfigureAwait(false); } /// @@ -283,7 +283,7 @@ public static async Task> GetEventHubsCluster /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -292,23 +292,23 @@ public static async Task> GetEventHubsCluster /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetEventHubsCluster(this ResourceGroupResource resourceGroupResource, string clusterName, CancellationToken cancellationToken = default) + public static Response GetCluster(this ResourceGroupResource resourceGroupResource, string clusterName, CancellationToken cancellationToken = default) { - return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEventHubsCluster(clusterName, cancellationToken); + return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetCluster(clusterName, cancellationToken); } /// - /// Gets a collection of EventHubsNamespaceResources in the ResourceGroupResource. + /// Gets a collection of EHNamespaceResources in the ResourceGroupResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// An object representing collection of EventHubsNamespaceResources and their operations over a EventHubsNamespaceResource. - public static EventHubsNamespaceCollection GetEventHubsNamespaces(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of EHNamespaceResources and their operations over a EHNamespaceResource. + public static EHNamespaceCollection GetEHNamespaces(this ResourceGroupResource resourceGroupResource) { - return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEventHubsNamespaces(); + return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEHNamespaces(); } /// @@ -325,7 +325,7 @@ public static EventHubsNamespaceCollection GetEventHubsNamespaces(this ResourceG /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -334,9 +334,9 @@ public static EventHubsNamespaceCollection GetEventHubsNamespaces(this ResourceG /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetEventHubsNamespaceAsync(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default) + public static async Task> GetEHNamespaceAsync(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default) { - return await GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEventHubsNamespaceAsync(namespaceName, cancellationToken).ConfigureAwait(false); + return await GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEHNamespaceAsync(namespaceName, cancellationToken).ConfigureAwait(false); } /// @@ -353,7 +353,7 @@ public static async Task> GetEventHubsNames /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -362,9 +362,9 @@ public static async Task> GetEventHubsNames /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetEventHubsNamespace(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default) + public static Response GetEHNamespace(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default) { - return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEventHubsNamespace(namespaceName, cancellationToken); + return GetMockableEventHubsResourceGroupResource(resourceGroupResource).GetEHNamespace(namespaceName, cancellationToken); } /// @@ -431,15 +431,15 @@ public static Pageable GetAvailableClusterRegionClusters(this /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetEventHubsClustersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetClustersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetEventHubsClustersAsync(cancellationToken); + return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetClustersAsync(cancellationToken); } /// @@ -456,15 +456,15 @@ public static AsyncPageable GetEventHubsClustersAsync( /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetEventHubsClusters(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetClusters(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetEventHubsClusters(cancellationToken); + return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetClusters(cancellationToken); } /// @@ -481,15 +481,15 @@ public static Pageable GetEventHubsClusters(this Subsc /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetEventHubsNamespacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetEHNamespacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetEventHubsNamespacesAsync(cancellationToken); + return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetEHNamespacesAsync(cancellationToken); } /// @@ -506,15 +506,15 @@ public static AsyncPageable GetEventHubsNamespacesAs /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetEventHubsNamespaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetEHNamespaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetEventHubsNamespaces(cancellationToken); + return GetMockableEventHubsSubscriptionResource(subscriptionResource).GetEHNamespaces(cancellationToken); } /// diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsArmClient.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsArmClient.cs index 6262b818c22b..89908c7447b1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsArmClient.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsArmClient.cs @@ -37,39 +37,39 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual EventHubsClusterResource GetEventHubsClusterResource(ResourceIdentifier id) + /// Returns a object. + public virtual ClusterResource GetClusterResource(ResourceIdentifier id) { - EventHubsClusterResource.ValidateResourceId(id); - return new EventHubsClusterResource(Client, id); + ClusterResource.ValidateResourceId(id); + return new ClusterResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual EventHubsNamespaceResource GetEventHubsNamespaceResource(ResourceIdentifier id) + /// Returns a object. + public virtual EHNamespaceResource GetEHNamespaceResource(ResourceIdentifier id) { - EventHubsNamespaceResource.ValidateResourceId(id); - return new EventHubsNamespaceResource(Client, id); + EHNamespaceResource.ValidateResourceId(id); + return new EHNamespaceResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSetResource(ResourceIdentifier id) + /// Returns a object. + public virtual NetworkRuleSetResource GetNetworkRuleSetResource(ResourceIdentifier id) { - EventHubsNetworkRuleSetResource.ValidateResourceId(id); - return new EventHubsNetworkRuleSetResource(Client, id); + NetworkRuleSetResource.ValidateResourceId(id); + return new NetworkRuleSetResource(Client, id); } /// 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 d597a6d5792c..b076daea64da 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsResourceGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsResourceGroupResource.cs @@ -36,11 +36,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of EventHubsClusterResources in the ResourceGroupResource. - /// An object representing collection of EventHubsClusterResources and their operations over a EventHubsClusterResource. - public virtual EventHubsClusterCollection GetEventHubsClusters() + /// Gets a collection of ClusterResources in the ResourceGroupResource. + /// An object representing collection of ClusterResources and their operations over a ClusterResource. + public virtual ClusterCollection GetClusters() { - return GetCachedClient(client => new EventHubsClusterCollection(client, Id)); + return GetCachedClient(client => new ClusterCollection(client, Id)); } /// @@ -61,9 +61,9 @@ public virtual EventHubsClusterCollection GetEventHubsClusters() /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetEventHubsClusterAsync(string clusterName, CancellationToken cancellationToken = default) + public virtual async Task> GetClusterAsync(string clusterName, CancellationToken cancellationToken = default) { - return await GetEventHubsClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false); + return await GetClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false); } /// @@ -84,16 +84,16 @@ public virtual async Task> GetEventHubsCluste /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetEventHubsCluster(string clusterName, CancellationToken cancellationToken = default) + public virtual Response GetCluster(string clusterName, CancellationToken cancellationToken = default) { - return GetEventHubsClusters().Get(clusterName, cancellationToken); + return GetClusters().Get(clusterName, cancellationToken); } - /// Gets a collection of EventHubsNamespaceResources in the ResourceGroupResource. - /// An object representing collection of EventHubsNamespaceResources and their operations over a EventHubsNamespaceResource. - public virtual EventHubsNamespaceCollection GetEventHubsNamespaces() + /// Gets a collection of EHNamespaceResources in the ResourceGroupResource. + /// An object representing collection of EHNamespaceResources and their operations over a EHNamespaceResource. + public virtual EHNamespaceCollection GetEHNamespaces() { - return GetCachedClient(client => new EventHubsNamespaceCollection(client, Id)); + return GetCachedClient(client => new EHNamespaceCollection(client, Id)); } /// @@ -114,9 +114,9 @@ public virtual EventHubsNamespaceCollection GetEventHubsNamespaces() /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetEventHubsNamespaceAsync(string namespaceName, CancellationToken cancellationToken = default) + public virtual async Task> GetEHNamespaceAsync(string namespaceName, CancellationToken cancellationToken = default) { - return await GetEventHubsNamespaces().GetAsync(namespaceName, cancellationToken).ConfigureAwait(false); + return await GetEHNamespaces().GetAsync(namespaceName, cancellationToken).ConfigureAwait(false); } /// @@ -137,9 +137,9 @@ public virtual async Task> GetEventHubsName /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetEventHubsNamespace(string namespaceName, CancellationToken cancellationToken = default) + public virtual Response GetEHNamespace(string namespaceName, CancellationToken cancellationToken = default) { - return GetEventHubsNamespaces().Get(namespaceName, cancellationToken); + return GetEHNamespaces().Get(namespaceName, cancellationToken); } } } 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 3f91b7967cb4..eb6fd7108c50 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsSubscriptionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Extensions/MockableEventHubsSubscriptionResource.cs @@ -21,10 +21,10 @@ namespace Azure.ResourceManager.EventHubs.Mocking /// A class to add extension methods to SubscriptionResource. public partial class MockableEventHubsSubscriptionResource : ArmResource { - private ClientDiagnostics _eventHubsClusterClustersClientDiagnostics; - private ClustersRestOperations _eventHubsClusterClustersRestClient; - private ClientDiagnostics _eventHubsNamespaceNamespacesClientDiagnostics; - private NamespacesRestOperations _eventHubsNamespaceNamespacesRestClient; + private ClientDiagnostics _clusterClientDiagnostics; + private ClustersRestOperations _clusterRestClient; + private ClientDiagnostics _ehNamespaceNamespacesClientDiagnostics; + private NamespacesRestOperations _ehNamespaceNamespacesRestClient; /// Initializes a new instance of the class for mocking. protected MockableEventHubsSubscriptionResource() @@ -38,10 +38,10 @@ internal MockableEventHubsSubscriptionResource(ArmClient client, ResourceIdentif { } - private ClientDiagnostics EventHubsClusterClustersClientDiagnostics => _eventHubsClusterClustersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.EventHubs", EventHubsClusterResource.ResourceType.Namespace, Diagnostics); - private ClustersRestOperations EventHubsClusterClustersRestClient => _eventHubsClusterClustersRestClient ??= new ClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(EventHubsClusterResource.ResourceType)); - private ClientDiagnostics EventHubsNamespaceNamespacesClientDiagnostics => _eventHubsNamespaceNamespacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.EventHubs", EventHubsNamespaceResource.ResourceType.Namespace, Diagnostics); - private NamespacesRestOperations EventHubsNamespaceNamespacesRestClient => _eventHubsNamespaceNamespacesRestClient ??= new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(EventHubsNamespaceResource.ResourceType)); + private ClientDiagnostics ClusterClientDiagnostics => _clusterClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.EventHubs", ClusterResource.ResourceType.Namespace, Diagnostics); + private ClustersRestOperations ClusterRestClient => _clusterRestClient ??= new ClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ClusterResource.ResourceType)); + private ClientDiagnostics EHNamespaceNamespacesClientDiagnostics => _ehNamespaceNamespacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.EventHubs", EHNamespaceResource.ResourceType.Namespace, Diagnostics); + private NamespacesRestOperations EHNamespaceNamespacesRestClient => _ehNamespaceNamespacesRestClient ??= new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(EHNamespaceResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -66,8 +66,8 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAvailableClusterRegionClustersAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => EventHubsClusterClustersRestClient.CreateListAvailableClusterRegionRequest(Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, AvailableCluster.DeserializeAvailableCluster, EventHubsClusterClustersClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetAvailableClusterRegionClusters", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => ClusterRestClient.CreateListAvailableClusterRegionRequest(Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, AvailableCluster.DeserializeAvailableCluster, ClusterClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetAvailableClusterRegionClusters", "value", null, cancellationToken); } /// @@ -87,8 +87,8 @@ public virtual AsyncPageable GetAvailableClusterRegionClusters /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAvailableClusterRegionClusters(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => EventHubsClusterClustersRestClient.CreateListAvailableClusterRegionRequest(Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, AvailableCluster.DeserializeAvailableCluster, EventHubsClusterClustersClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetAvailableClusterRegionClusters", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => ClusterRestClient.CreateListAvailableClusterRegionRequest(Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, AvailableCluster.DeserializeAvailableCluster, ClusterClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetAvailableClusterRegionClusters", "value", null, cancellationToken); } /// @@ -105,12 +105,12 @@ public virtual Pageable GetAvailableClusterRegionClusters(Canc /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetEventHubsClustersAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetClustersAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => EventHubsClusterClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => EventHubsClusterClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EventHubsClusterResource(Client, EventHubsClusterData.DeserializeEventHubsClusterData(e)), EventHubsClusterClustersClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetEventHubsClusters", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => ClusterRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ClusterRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ClusterResource(Client, ClusterData.DeserializeClusterData(e)), ClusterClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetClusters", "value", "nextLink", cancellationToken); } /// @@ -127,12 +127,12 @@ public virtual AsyncPageable GetEventHubsClustersAsync /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetEventHubsClusters(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetClusters(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => EventHubsClusterClustersRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => EventHubsClusterClustersRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EventHubsClusterResource(Client, EventHubsClusterData.DeserializeEventHubsClusterData(e)), EventHubsClusterClustersClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetEventHubsClusters", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => ClusterRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ClusterRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ClusterResource(Client, ClusterData.DeserializeClusterData(e)), ClusterClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetClusters", "value", "nextLink", cancellationToken); } /// @@ -149,12 +149,12 @@ public virtual Pageable GetEventHubsClusters(Cancellat /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetEventHubsNamespacesAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetEHNamespacesAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => EventHubsNamespaceNamespacesRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => EventHubsNamespaceNamespacesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EventHubsNamespaceResource(Client, EventHubsNamespaceData.DeserializeEventHubsNamespaceData(e)), EventHubsNamespaceNamespacesClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetEventHubsNamespaces", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => EHNamespaceNamespacesRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => EHNamespaceNamespacesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EHNamespaceResource(Client, EHNamespaceData.DeserializeEHNamespaceData(e)), EHNamespaceNamespacesClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetEHNamespaces", "value", "nextLink", cancellationToken); } /// @@ -171,12 +171,12 @@ public virtual AsyncPageable GetEventHubsNamespacesA /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetEventHubsNamespaces(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetEHNamespaces(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => EventHubsNamespaceNamespacesRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => EventHubsNamespaceNamespacesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EventHubsNamespaceResource(Client, EventHubsNamespaceData.DeserializeEventHubsNamespaceData(e)), EventHubsNamespaceNamespacesClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetEventHubsNamespaces", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => EHNamespaceNamespacesRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => EHNamespaceNamespacesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EHNamespaceResource(Client, EHNamespaceData.DeserializeEHNamespaceData(e)), EHNamespaceNamespacesClientDiagnostics, Pipeline, "MockableEventHubsSubscriptionResource.GetEHNamespaces", "value", "nextLink", cancellationToken); } /// @@ -199,11 +199,11 @@ public virtual async Task> CheckEventH { Argument.AssertNotNull(content, nameof(content)); - using var scope = EventHubsNamespaceNamespacesClientDiagnostics.CreateScope("MockableEventHubsSubscriptionResource.CheckEventHubsNamespaceNameAvailability"); + using var scope = EHNamespaceNamespacesClientDiagnostics.CreateScope("MockableEventHubsSubscriptionResource.CheckEventHubsNamespaceNameAvailability"); scope.Start(); try { - var response = await EventHubsNamespaceNamespacesRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false); + var response = await EHNamespaceNamespacesRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -233,11 +233,11 @@ public virtual Response CheckEventHubsNamespace { Argument.AssertNotNull(content, nameof(content)); - using var scope = EventHubsNamespaceNamespacesClientDiagnostics.CreateScope("MockableEventHubsSubscriptionResource.CheckEventHubsNamespaceNameAvailability"); + using var scope = EHNamespaceNamespacesClientDiagnostics.CreateScope("MockableEventHubsSubscriptionResource.CheckEventHubsNamespaceNameAvailability"); scope.Start(); try { - var response = EventHubsNamespaceNamespacesRestClient.CheckNameAvailability(Id.SubscriptionId, content, cancellationToken); + var response = EHNamespaceNamespacesRestClient.CheckNameAvailability(Id.SubscriptionId, content, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/ClusterOperationSource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/ClusterOperationSource.cs new file mode 100644 index 000000000000..51637bf94290 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/ClusterOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.EventHubs +{ + internal class ClusterOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ClusterOperationSource(ArmClient client) + { + _client = client; + } + + ClusterResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ClusterData.DeserializeClusterData(document.RootElement); + return new ClusterResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ClusterData.DeserializeClusterData(document.RootElement); + return new ClusterResource(_client, data); + } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EHNamespaceOperationSource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EHNamespaceOperationSource.cs new file mode 100644 index 000000000000..9f3dc9be31cc --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EHNamespaceOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.EventHubs +{ + internal class EHNamespaceOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal EHNamespaceOperationSource(ArmClient client) + { + _client = client; + } + + EHNamespaceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = EHNamespaceData.DeserializeEHNamespaceData(document.RootElement); + return new EHNamespaceResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = EHNamespaceData.DeserializeEHNamespaceData(document.RootElement); + return new EHNamespaceResource(_client, data); + } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsClusterOperationSource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsClusterOperationSource.cs deleted file mode 100644 index 042232509e7e..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsClusterOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.EventHubs -{ - internal class EventHubsClusterOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal EventHubsClusterOperationSource(ArmClient client) - { - _client = client; - } - - EventHubsClusterResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = EventHubsClusterData.DeserializeEventHubsClusterData(document.RootElement); - return new EventHubsClusterResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = EventHubsClusterData.DeserializeEventHubsClusterData(document.RootElement); - return new EventHubsClusterResource(_client, data); - } - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsNamespaceOperationSource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsNamespaceOperationSource.cs deleted file mode 100644 index be2356deff83..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsNamespaceOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.EventHubs -{ - internal class EventHubsNamespaceOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal EventHubsNamespaceOperationSource(ArmClient client) - { - _client = client; - } - - EventHubsNamespaceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = EventHubsNamespaceData.DeserializeEventHubsNamespaceData(document.RootElement); - return new EventHubsNamespaceResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = EventHubsNamespaceData.DeserializeEventHubsNamespaceData(document.RootElement); - return new EventHubsNamespaceResource(_client, data); - } - } -} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentity.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentity.Serialization.cs new file mode 100644 index 000000000000..c08a8a309f6c --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentity.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.EventHubs.Models +{ + public partial class CaptureIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IdentityType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(IdentityType.Value.ToSerialString()); + } + if (Optional.IsDefined(UserAssignedIdentity)) + { + writer.WritePropertyName("userAssignedIdentity"u8); + writer.WriteStringValue(UserAssignedIdentity); + } + writer.WriteEndObject(); + } + + internal static CaptureIdentity DeserializeCaptureIdentity(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + Optional userAssignedIdentity = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString().ToCaptureIdentityType(); + continue; + } + if (property.NameEquals("userAssignedIdentity"u8)) + { + userAssignedIdentity = property.Value.GetString(); + continue; + } + } + return new CaptureIdentity(Optional.ToNullable(type), userAssignedIdentity.Value); + } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentity.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentity.cs new file mode 100644 index 000000000000..f4808d4fdce2 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentity.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// A value that indicates whether capture description is enabled. + public partial class CaptureIdentity + { + /// Initializes a new instance of CaptureIdentity. + public CaptureIdentity() + { + } + + /// Initializes a new instance of CaptureIdentity. + /// Type of Azure Active Directory Managed Identity. + /// ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used. + internal CaptureIdentity(CaptureIdentityType? identityType, string userAssignedIdentity) + { + IdentityType = identityType; + UserAssignedIdentity = userAssignedIdentity; + } + + /// Type of Azure Active Directory Managed Identity. + public CaptureIdentityType? IdentityType { get; set; } + /// ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used. + public string UserAssignedIdentity { get; set; } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentityType.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentityType.Serialization.cs new file mode 100644 index 000000000000..3dd85a519e42 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentityType.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.EventHubs.Models +{ + internal static partial class CaptureIdentityTypeExtensions + { + public static string ToSerialString(this CaptureIdentityType value) => value switch + { + CaptureIdentityType.SystemAssigned => "SystemAssigned", + CaptureIdentityType.UserAssigned => "UserAssigned", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CaptureIdentityType value.") + }; + + public static CaptureIdentityType ToCaptureIdentityType(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned")) return CaptureIdentityType.SystemAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserAssigned")) return CaptureIdentityType.UserAssigned; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CaptureIdentityType value."); + } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentityType.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentityType.cs new file mode 100644 index 000000000000..f3492e3bb16f --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CaptureIdentityType.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Type of Azure Active Directory Managed Identity. + public enum CaptureIdentityType + { + /// SystemAssigned. + SystemAssigned, + /// UserAssigned. + UserAssigned + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CleanupPolicyRetentionDescription.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CleanupPolicyRetentionDescription.cs index c4051bc9dfb4..f91281e3a34c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CleanupPolicyRetentionDescription.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/CleanupPolicyRetentionDescription.cs @@ -23,12 +23,12 @@ public CleanupPolicyRetentionDescription(string value) } private const string DeleteValue = "Delete"; - private const string CompactionValue = "Compaction"; + private const string CompactValue = "Compact"; /// Delete. public static CleanupPolicyRetentionDescription Delete { get; } = new CleanupPolicyRetentionDescription(DeleteValue); - /// Compaction. - public static CleanupPolicyRetentionDescription Compaction { get; } = new CleanupPolicyRetentionDescription(CompactionValue); + /// Compact. + public static CleanupPolicyRetentionDescription Compact { get; } = new CleanupPolicyRetentionDescription(CompactValue); /// Determines if two values are the same. public static bool operator ==(CleanupPolicyRetentionDescription left, CleanupPolicyRetentionDescription right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterData.Serialization.cs similarity index 78% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterData.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterData.Serialization.cs index d212010c0bdd..c5ecb46b13fa 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterData.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -14,7 +13,7 @@ namespace Azure.ResourceManager.EventHubs { - public partial class EventHubsClusterData : IUtf8JsonSerializable + public partial class ClusterData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,28 +43,35 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("supportsScaling"u8); writer.WriteBooleanValue(SupportsScaling.Value); } + if (Optional.IsDefined(UpgradePreferences)) + { + writer.WritePropertyName("upgradePreferences"u8); + writer.WriteObjectValue(UpgradePreferences); + } writer.WriteEndObject(); writer.WriteEndObject(); } - internal static EventHubsClusterData DeserializeEventHubsClusterData(JsonElement element) + internal static ClusterData DeserializeClusterData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional sku = default; + Optional sku = default; Optional> tags = default; AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional createdAt = default; - Optional updatedAt = default; + Optional createdAt = default; + Optional provisioningState = default; + Optional updatedAt = default; Optional metricId = default; Optional status = default; Optional supportsScaling = default; + Optional upgradePreferences = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sku"u8)) @@ -74,7 +80,7 @@ internal static EventHubsClusterData DeserializeEventHubsClusterData(JsonElement { continue; } - sku = EventHubsClusterSku.DeserializeEventHubsClusterSku(property.Value); + sku = ClusterSku.DeserializeClusterSku(property.Value); continue; } if (property.NameEquals("tags"u8)) @@ -130,21 +136,22 @@ internal static EventHubsClusterData DeserializeEventHubsClusterData(JsonElement foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("createdAt"u8)) + { + createdAt = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("provisioningState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - createdAt = property0.Value.GetDateTimeOffset("O"); + provisioningState = new ProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("updatedAt"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - updatedAt = property0.Value.GetDateTimeOffset("O"); + updatedAt = property0.Value.GetString(); continue; } if (property0.NameEquals("metricId"u8)) @@ -166,11 +173,20 @@ internal static EventHubsClusterData DeserializeEventHubsClusterData(JsonElement supportsScaling = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("upgradePreferences"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + upgradePreferences = UpgradePreferences.DeserializeUpgradePreferences(property0.Value); + continue; + } } continue; } } - return new EventHubsClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, Optional.ToNullable(createdAt), Optional.ToNullable(updatedAt), metricId.Value, status.Value, Optional.ToNullable(supportsScaling)); + return new ClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, createdAt.Value, Optional.ToNullable(provisioningState), updatedAt.Value, metricId.Value, status.Value, Optional.ToNullable(supportsScaling), upgradePreferences.Value); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.Serialization.cs index 477f4f72b35f..5f725d66bb81 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.Serialization.cs @@ -20,7 +20,7 @@ internal static ClusterListResult DeserializeClusterListResult(JsonElement eleme { return null; } - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -30,10 +30,10 @@ internal static ClusterListResult DeserializeClusterListResult(JsonElement eleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(EventHubsClusterData.DeserializeEventHubsClusterData(item)); + array.Add(ClusterData.DeserializeClusterData(item)); } value = array; continue; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs index ca2cbfcf6f4d..5b220ce5215a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs @@ -17,20 +17,20 @@ internal partial class ClusterListResult /// Initializes a new instance of ClusterListResult. internal ClusterListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ClusterListResult. /// The Event Hubs Clusters present in the List Event Hubs operation results. /// Link to the next set of results. Empty unless the value parameter contains an incomplete list of Event Hubs Clusters. - internal ClusterListResult(IReadOnlyList value, string nextLink) + internal ClusterListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// The Event Hubs Clusters present in the List Event Hubs operation results. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Link to the next set of results. Empty unless the value parameter contains an incomplete list of Event Hubs Clusters. public string NextLink { get; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSku.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSku.Serialization.cs similarity index 78% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSku.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSku.Serialization.cs index 0c9ec4c159d6..d41fb783e8b7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSku.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSku.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsClusterSku : IUtf8JsonSerializable + public partial class ClusterSku : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -25,19 +25,19 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsClusterSku DeserializeEventHubsClusterSku(JsonElement element) + internal static ClusterSku DeserializeClusterSku(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - EventHubsClusterSkuName name = default; + ClusterSkuName name = default; Optional capacity = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) { - name = new EventHubsClusterSkuName(property.Value.GetString()); + name = new ClusterSkuName(property.Value.GetString()); continue; } if (property.NameEquals("capacity"u8)) @@ -50,7 +50,7 @@ internal static EventHubsClusterSku DeserializeEventHubsClusterSku(JsonElement e continue; } } - return new EventHubsClusterSku(name, Optional.ToNullable(capacity)); + return new ClusterSku(name, Optional.ToNullable(capacity)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSku.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSku.cs similarity index 67% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSku.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSku.cs index 9942d64c31e2..a709d78336ea 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSku.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSku.cs @@ -8,26 +8,26 @@ namespace Azure.ResourceManager.EventHubs.Models { /// SKU parameters particular to a cluster instance. - public partial class EventHubsClusterSku + public partial class ClusterSku { - /// Initializes a new instance of EventHubsClusterSku. + /// Initializes a new instance of ClusterSku. /// Name of this SKU. - public EventHubsClusterSku(EventHubsClusterSkuName name) + public ClusterSku(ClusterSkuName name) { Name = name; } - /// Initializes a new instance of EventHubsClusterSku. + /// Initializes a new instance of ClusterSku. /// Name of this SKU. /// The quantity of Event Hubs Cluster Capacity Units contained in this cluster. - internal EventHubsClusterSku(EventHubsClusterSkuName name, int? capacity) + internal ClusterSku(ClusterSkuName name, int? capacity) { Name = name; Capacity = capacity; } /// Name of this SKU. - public EventHubsClusterSkuName Name { get; set; } + public ClusterSkuName Name { get; set; } /// The quantity of Event Hubs Cluster Capacity Units contained in this cluster. public int? Capacity { get; set; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSkuName.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSkuName.cs new file mode 100644 index 000000000000..c02f80a077fe --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterSkuName.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Name of this SKU. + public readonly partial struct ClusterSkuName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ClusterSkuName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DedicatedValue = "Dedicated"; + + /// Dedicated. + public static ClusterSkuName Dedicated { get; } = new ClusterSkuName(DedicatedValue); + /// Determines if two values are the same. + public static bool operator ==(ClusterSkuName left, ClusterSkuName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ClusterSkuName left, ClusterSkuName right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ClusterSkuName(string value) => new ClusterSkuName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ClusterSkuName other && Equals(other); + /// + public bool Equals(ClusterSkuName 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/EventHubsPrivateLinkServiceConnectionState.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConnectionState.Serialization.cs similarity index 74% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConnectionState.Serialization.cs index 780a70f12bf1..c8da17303147 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConnectionState.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsPrivateLinkServiceConnectionState : IUtf8JsonSerializable + public partial class ConnectionState : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,13 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsPrivateLinkServiceConnectionState DeserializeEventHubsPrivateLinkServiceConnectionState(JsonElement element) + internal static ConnectionState DeserializeConnectionState(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional status = default; + Optional status = default; Optional description = default; foreach (var property in element.EnumerateObject()) { @@ -44,7 +44,7 @@ internal static EventHubsPrivateLinkServiceConnectionState DeserializeEventHubsP { continue; } - status = new EventHubsPrivateLinkConnectionStatus(property.Value.GetString()); + status = new PrivateLinkConnectionStatus(property.Value.GetString()); continue; } if (property.NameEquals("description"u8)) @@ -53,7 +53,7 @@ internal static EventHubsPrivateLinkServiceConnectionState DeserializeEventHubsP continue; } } - return new EventHubsPrivateLinkServiceConnectionState(Optional.ToNullable(status), description.Value); + return new ConnectionState(Optional.ToNullable(status), description.Value); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConnectionState.cs similarity index 56% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConnectionState.cs index 01b1feeca02a..a82220614bef 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkServiceConnectionState.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConnectionState.cs @@ -8,24 +8,24 @@ namespace Azure.ResourceManager.EventHubs.Models { /// ConnectionState information. - public partial class EventHubsPrivateLinkServiceConnectionState + public partial class ConnectionState { - /// Initializes a new instance of EventHubsPrivateLinkServiceConnectionState. - public EventHubsPrivateLinkServiceConnectionState() + /// Initializes a new instance of ConnectionState. + public ConnectionState() { } - /// Initializes a new instance of EventHubsPrivateLinkServiceConnectionState. + /// Initializes a new instance of ConnectionState. /// Status of the connection. /// Description of the connection state. - internal EventHubsPrivateLinkServiceConnectionState(EventHubsPrivateLinkConnectionStatus? status, string description) + internal ConnectionState(PrivateLinkConnectionStatus? status, string description) { Status = status; Description = description; } /// Status of the connection. - public EventHubsPrivateLinkConnectionStatus? Status { get; set; } + public PrivateLinkConnectionStatus? Status { get; set; } /// Description of the connection state. public string Description { get; set; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/DefaultAction.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/DefaultAction.cs new file mode 100644 index 000000000000..6cb184ab459f --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/DefaultAction.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Default Action for Network Rule Set. + public readonly partial struct DefaultAction : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DefaultAction(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + private const string DenyValue = "Deny"; + + /// Allow. + public static DefaultAction Allow { get; } = new DefaultAction(AllowValue); + /// Deny. + public static DefaultAction Deny { get; } = new DefaultAction(DenyValue); + /// Determines if two values are the same. + public static bool operator ==(DefaultAction left, DefaultAction right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DefaultAction left, DefaultAction right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DefaultAction(string value) => new DefaultAction(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DefaultAction other && Equals(other); + /// + public bool Equals(DefaultAction 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/EventHubsNamespaceData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceData.Serialization.cs similarity index 91% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceData.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceData.Serialization.cs index 6b720a3ce8d7..1d0bd3960c37 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.EventHubs { - public partial class EventHubsNamespaceData : IUtf8JsonSerializable + public partial class EHNamespaceData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -108,7 +108,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonElement element) + internal static EHNamespaceData DeserializeEHNamespaceData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -128,14 +128,14 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle Optional createdAt = default; Optional updatedAt = default; Optional serviceBusEndpoint = default; - Optional clusterArmId = default; + Optional clusterArmId = default; Optional metricId = default; Optional isAutoInflateEnabled = default; Optional publicNetworkAccess = default; Optional maximumThroughputUnits = default; Optional kafkaEnabled = default; Optional zoneRedundant = default; - Optional encryption = default; + Optional encryption = default; Optional> privateEndpointConnections = default; Optional disableLocalAuth = default; Optional alternateName = default; @@ -255,11 +255,7 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle } if (property0.NameEquals("clusterArmId"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - clusterArmId = new ResourceIdentifier(property0.Value.GetString()); + clusterArmId = property0.Value.GetString(); continue; } if (property0.NameEquals("metricId"u8)) @@ -318,7 +314,7 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle { continue; } - encryption = EventHubsEncryption.DeserializeEventHubsEncryption(property0.Value); + encryption = Encryption.DeserializeEncryption(property0.Value); continue; } if (property0.NameEquals("privateEndpointConnections"u8)) @@ -353,7 +349,7 @@ internal static EventHubsNamespaceData DeserializeEventHubsNamespaceData(JsonEle continue; } } - return new EventHubsNamespaceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(minimumTlsVersion), provisioningState.Value, status.Value, Optional.ToNullable(createdAt), Optional.ToNullable(updatedAt), serviceBusEndpoint.Value, clusterArmId.Value, metricId.Value, Optional.ToNullable(isAutoInflateEnabled), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(maximumThroughputUnits), Optional.ToNullable(kafkaEnabled), Optional.ToNullable(zoneRedundant), encryption.Value, Optional.ToList(privateEndpointConnections), Optional.ToNullable(disableLocalAuth), alternateName.Value); + return new EHNamespaceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(minimumTlsVersion), provisioningState.Value, status.Value, Optional.ToNullable(createdAt), Optional.ToNullable(updatedAt), serviceBusEndpoint.Value, clusterArmId.Value, metricId.Value, Optional.ToNullable(isAutoInflateEnabled), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(maximumThroughputUnits), Optional.ToNullable(kafkaEnabled), Optional.ToNullable(zoneRedundant), encryption.Value, Optional.ToList(privateEndpointConnections), Optional.ToNullable(disableLocalAuth), alternateName.Value); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.Serialization.cs index bed261f55fc2..4b40dd24d1ff 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.Serialization.cs @@ -20,7 +20,7 @@ internal static EHNamespaceListResult DeserializeEHNamespaceListResult(JsonEleme { return null; } - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -30,10 +30,10 @@ internal static EHNamespaceListResult DeserializeEHNamespaceListResult(JsonEleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(EventHubsNamespaceData.DeserializeEventHubsNamespaceData(item)); + array.Add(EHNamespaceData.DeserializeEHNamespaceData(item)); } value = array; continue; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs index 1c12ac63fcfb..416ee4310aca 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs @@ -17,20 +17,20 @@ internal partial class EHNamespaceListResult /// Initializes a new instance of EHNamespaceListResult. internal EHNamespaceListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of EHNamespaceListResult. /// Result of the List Namespace operation. /// Link to the next set of results. Not empty if Value contains incomplete list of namespaces. - internal EHNamespaceListResult(IReadOnlyList value, string nextLink) + internal EHNamespaceListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Result of the List Namespace operation. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Link to the next set of results. Not empty if Value contains incomplete list of namespaces. public string NextLink { get; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/Encryption.Serialization.cs similarity index 81% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/Encryption.Serialization.cs index 1a5550e1d71c..057b75f41176 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/Encryption.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsEncryption : IUtf8JsonSerializable + public partial class Encryption : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,13 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsEncryption DeserializeEventHubsEncryption(JsonElement element) + internal static Encryption DeserializeEncryption(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional> keyVaultProperties = default; + Optional> keyVaultProperties = default; Optional keySource = default; Optional requireInfrastructureEncryption = default; foreach (var property in element.EnumerateObject()) @@ -56,10 +56,10 @@ internal static EventHubsEncryption DeserializeEventHubsEncryption(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(EventHubsKeyVaultProperties.DeserializeEventHubsKeyVaultProperties(item)); + array.Add(Models.KeyVaultProperties.DeserializeKeyVaultProperties(item)); } keyVaultProperties = array; continue; @@ -83,7 +83,7 @@ internal static EventHubsEncryption DeserializeEventHubsEncryption(JsonElement e continue; } } - return new EventHubsEncryption(Optional.ToList(keyVaultProperties), Optional.ToNullable(keySource), Optional.ToNullable(requireInfrastructureEncryption)); + return new Encryption(Optional.ToList(keyVaultProperties), Optional.ToNullable(keySource), Optional.ToNullable(requireInfrastructureEncryption)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/Encryption.cs similarity index 67% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/Encryption.cs index 5ff99b4a87af..07d72b597882 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/Encryption.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.EventHubs.Models { /// Properties to configure Encryption. - public partial class EventHubsEncryption + public partial class Encryption { - /// Initializes a new instance of EventHubsEncryption. - public EventHubsEncryption() + /// Initializes a new instance of Encryption. + public Encryption() { - KeyVaultProperties = new ChangeTrackingList(); + KeyVaultProperties = new ChangeTrackingList(); } - /// Initializes a new instance of EventHubsEncryption. + /// Initializes a new instance of Encryption. /// Properties of KeyVault. /// Enumerates the possible value of keySource for Encryption. /// Enable Infrastructure Encryption (Double Encryption). - internal EventHubsEncryption(IList keyVaultProperties, EventHubsKeySource? keySource, bool? requireInfrastructureEncryption) + internal Encryption(IList keyVaultProperties, EventHubsKeySource? keySource, bool? requireInfrastructureEncryption) { KeyVaultProperties = keyVaultProperties; KeySource = keySource; @@ -31,7 +31,7 @@ internal EventHubsEncryption(IList keyVaultProperti } /// Properties of KeyVault. - public IList KeyVaultProperties { get; } + public IList KeyVaultProperties { get; } /// Enumerates the possible value of keySource for Encryption. public EventHubsKeySource? KeySource { get; set; } /// Enable Infrastructure Encryption (Double Encryption). diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EndPointProvisioningState.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EndPointProvisioningState.cs new file mode 100644 index 000000000000..9f7ad1be77dc --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EndPointProvisioningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Provisioning state of the Private Endpoint Connection. + public readonly partial struct EndPointProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EndPointProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CreatingValue = "Creating"; + private const string UpdatingValue = "Updating"; + private const string DeletingValue = "Deleting"; + private const string SucceededValue = "Succeeded"; + private const string CanceledValue = "Canceled"; + private const string FailedValue = "Failed"; + + /// Creating. + public static EndPointProvisioningState Creating { get; } = new EndPointProvisioningState(CreatingValue); + /// Updating. + public static EndPointProvisioningState Updating { get; } = new EndPointProvisioningState(UpdatingValue); + /// Deleting. + public static EndPointProvisioningState Deleting { get; } = new EndPointProvisioningState(DeletingValue); + /// Succeeded. + public static EndPointProvisioningState Succeeded { get; } = new EndPointProvisioningState(SucceededValue); + /// Canceled. + public static EndPointProvisioningState Canceled { get; } = new EndPointProvisioningState(CanceledValue); + /// Failed. + public static EndPointProvisioningState Failed { get; } = new EndPointProvisioningState(FailedValue); + /// Determines if two values are the same. + public static bool operator ==(EndPointProvisioningState left, EndPointProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EndPointProvisioningState left, EndPointProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EndPointProvisioningState(string value) => new EndPointProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EndPointProvisioningState other && Equals(other); + /// + public bool Equals(EndPointProvisioningState 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/EventHubDestination.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.Serialization.cs index 3667b684f923..9dedd76f5684 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.Serialization.cs @@ -21,6 +21,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + writer.WriteObjectValue(Identity); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(StorageAccountResourceId)) @@ -64,6 +69,7 @@ internal static EventHubDestination DeserializeEventHubDestination(JsonElement e return null; } Optional name = default; + Optional identity = default; Optional storageAccountResourceId = default; Optional blobContainer = default; Optional archiveNameFormat = default; @@ -77,6 +83,15 @@ internal static EventHubDestination DeserializeEventHubDestination(JsonElement e name = property.Value.GetString(); continue; } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = CaptureIdentity.DeserializeCaptureIdentity(property.Value); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -128,7 +143,7 @@ internal static EventHubDestination DeserializeEventHubDestination(JsonElement e continue; } } - return new EventHubDestination(name.Value, storageAccountResourceId.Value, blobContainer.Value, archiveNameFormat.Value, Optional.ToNullable(dataLakeSubscriptionId), dataLakeAccountName.Value, dataLakeFolderPath.Value); + return new EventHubDestination(name.Value, identity.Value, storageAccountResourceId.Value, blobContainer.Value, archiveNameFormat.Value, Optional.ToNullable(dataLakeSubscriptionId), dataLakeAccountName.Value, dataLakeFolderPath.Value); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.cs index c54e5ef9d136..367d714ff95d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubDestination.cs @@ -20,15 +20,17 @@ public EventHubDestination() /// Initializes a new instance of EventHubDestination. /// Name for capture destination. + /// A value that indicates whether capture description is enabled. /// Resource id of the storage account to be used to create the blobs. /// Blob container Name. /// Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order. /// Subscription Id of Azure Data Lake Store. /// The Azure Data Lake Store name for the captured events. /// The destination folder path for the captured events. - internal EventHubDestination(string name, ResourceIdentifier storageAccountResourceId, string blobContainer, string archiveNameFormat, Guid? dataLakeSubscriptionId, string dataLakeAccountName, string dataLakeFolderPath) + internal EventHubDestination(string name, CaptureIdentity identity, ResourceIdentifier storageAccountResourceId, string blobContainer, string archiveNameFormat, Guid? dataLakeSubscriptionId, string dataLakeAccountName, string dataLakeFolderPath) { Name = name; + Identity = identity; StorageAccountResourceId = storageAccountResourceId; BlobContainer = blobContainer; ArchiveNameFormat = archiveNameFormat; @@ -39,6 +41,8 @@ internal EventHubDestination(string name, ResourceIdentifier storageAccountResou /// Name for capture destination. public string Name { get; set; } + /// A value that indicates whether capture description is enabled. + public CaptureIdentity Identity { get; set; } /// Resource id of the storage account to be used to create the blobs. public ResourceIdentifier StorageAccountResourceId { get; set; } /// Blob container Name. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSkuName.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSkuName.cs deleted file mode 100644 index b87f4c1c2d36..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterSkuName.cs +++ /dev/null @@ -1,48 +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 -{ - /// Name of this SKU. - public readonly partial struct EventHubsClusterSkuName : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EventHubsClusterSkuName(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DedicatedValue = "Dedicated"; - - /// Dedicated. - public static EventHubsClusterSkuName Dedicated { get; } = new EventHubsClusterSkuName(DedicatedValue); - /// Determines if two values are the same. - public static bool operator ==(EventHubsClusterSkuName left, EventHubsClusterSkuName right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventHubsClusterSkuName left, EventHubsClusterSkuName right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EventHubsClusterSkuName(string value) => new EventHubsClusterSkuName(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventHubsClusterSkuName other && Equals(other); - /// - public bool Equals(EventHubsClusterSkuName 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/EventHubsNetworkRuleIPAction.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleIPAction.cs deleted file mode 100644 index 7ae8a7a087f0..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleIPAction.cs +++ /dev/null @@ -1,48 +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 -{ - /// The IP Filter Action. - public readonly partial struct EventHubsNetworkRuleIPAction : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EventHubsNetworkRuleIPAction(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AllowValue = "Allow"; - - /// Allow. - public static EventHubsNetworkRuleIPAction Allow { get; } = new EventHubsNetworkRuleIPAction(AllowValue); - /// Determines if two values are the same. - public static bool operator ==(EventHubsNetworkRuleIPAction left, EventHubsNetworkRuleIPAction right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventHubsNetworkRuleIPAction left, EventHubsNetworkRuleIPAction right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EventHubsNetworkRuleIPAction(string value) => new EventHubsNetworkRuleIPAction(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventHubsNetworkRuleIPAction other && Equals(other); - /// - public bool Equals(EventHubsNetworkRuleIPAction 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/EventHubsNetworkRuleSetDefaultAction.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetDefaultAction.cs deleted file mode 100644 index acc2580a27c5..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetDefaultAction.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 -{ - /// Default Action for Network Rule Set. - public readonly partial struct EventHubsNetworkRuleSetDefaultAction : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EventHubsNetworkRuleSetDefaultAction(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AllowValue = "Allow"; - private const string DenyValue = "Deny"; - - /// Allow. - public static EventHubsNetworkRuleSetDefaultAction Allow { get; } = new EventHubsNetworkRuleSetDefaultAction(AllowValue); - /// Deny. - public static EventHubsNetworkRuleSetDefaultAction Deny { get; } = new EventHubsNetworkRuleSetDefaultAction(DenyValue); - /// Determines if two values are the same. - public static bool operator ==(EventHubsNetworkRuleSetDefaultAction left, EventHubsNetworkRuleSetDefaultAction right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventHubsNetworkRuleSetDefaultAction left, EventHubsNetworkRuleSetDefaultAction right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EventHubsNetworkRuleSetDefaultAction(string value) => new EventHubsNetworkRuleSetDefaultAction(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventHubsNetworkRuleSetDefaultAction other && Equals(other); - /// - public bool Equals(EventHubsNetworkRuleSetDefaultAction 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/EventHubsNetworkSecurityPerimeterConfiguration.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.Serialization.cs index 433eb80bb2b3..f66960747591 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.Serialization.cs @@ -17,19 +17,6 @@ public partial class EventHubsNetworkSecurityPerimeterConfiguration : IUtf8JsonS void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(ProvisioningState)) @@ -57,8 +44,7 @@ internal static EventHubsNetworkSecurityPerimeterConfiguration DeserializeEventH { return null; } - Optional> tags = default; - AzureLocation location = default; + Optional location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -68,24 +54,18 @@ internal static EventHubsNetworkSecurityPerimeterConfiguration DeserializeEventH Optional networkSecurityPerimeter = default; Optional resourceAssociation = default; Optional profile = default; + Optional isBackingResource = default; + Optional> applicableFeatures = default; + Optional parentAssociationName = default; + Optional sourceResourceId = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("tags"u8)) + if (property.NameEquals("location"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { location = new AzureLocation(property.Value.GetString()); continue; } @@ -172,11 +152,44 @@ internal static EventHubsNetworkSecurityPerimeterConfiguration DeserializeEventH profile = EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile.DeserializeEventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile(property0.Value); continue; } + if (property0.NameEquals("isBackingResource"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isBackingResource = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("applicableFeatures"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + applicableFeatures = array; + continue; + } + if (property0.NameEquals("parentAssociationName"u8)) + { + parentAssociationName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("sourceResourceId"u8)) + { + sourceResourceId = property0.Value.GetString(); + continue; + } } continue; } } - return new EventHubsNetworkSecurityPerimeterConfiguration(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(provisioningState), Optional.ToList(provisioningIssues), networkSecurityPerimeter.Value, resourceAssociation.Value, profile.Value); + return new EventHubsNetworkSecurityPerimeterConfiguration(id, name, type, systemData.Value, Optional.ToNullable(provisioningState), Optional.ToList(provisioningIssues), networkSecurityPerimeter.Value, resourceAssociation.Value, profile.Value, Optional.ToNullable(isBackingResource), Optional.ToList(applicableFeatures), parentAssociationName.Value, sourceResourceId.Value, Optional.ToNullable(location)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs index 9d5a0a03aa1e..c08cb15a6092 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs @@ -12,13 +12,13 @@ namespace Azure.ResourceManager.EventHubs.Models { /// Network Security Perimeter related configurations of a given namespace. - public partial class EventHubsNetworkSecurityPerimeterConfiguration : TrackedResourceData + public partial class EventHubsNetworkSecurityPerimeterConfiguration : ResourceData { /// Initializes a new instance of EventHubsNetworkSecurityPerimeterConfiguration. - /// The location. - public EventHubsNetworkSecurityPerimeterConfiguration(AzureLocation location) : base(location) + public EventHubsNetworkSecurityPerimeterConfiguration() { ProvisioningIssues = new ChangeTrackingList(); + ApplicableFeatures = new ChangeTrackingList(); } /// Initializes a new instance of EventHubsNetworkSecurityPerimeterConfiguration. @@ -26,20 +26,28 @@ public EventHubsNetworkSecurityPerimeterConfiguration(AzureLocation location) : /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. /// Provisioning state of NetworkSecurityPerimeter configuration propagation. /// List of Provisioning Issues if any. /// NetworkSecurityPerimeter related information. /// Information about resource association. /// Information about current network profile. - internal EventHubsNetworkSecurityPerimeterConfiguration(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, EventHubsNetworkSecurityPerimeterConfigurationProvisioningState? provisioningState, IList provisioningIssues, EventHubsNetworkSecurityPerimeter networkSecurityPerimeter, EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation, EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile profile) : base(id, name, resourceType, systemData, tags, location) + /// True if the EventHub namespace is backed by another Azure resource and not visible to end users. + /// Indicates that the NSP controls related to backing association are only applicable to a specific feature in backing resource's data plane. + /// Source Resource Association name. + /// ARM Id of source resource. + /// The geo-location where the resource lives. + internal EventHubsNetworkSecurityPerimeterConfiguration(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EventHubsNetworkSecurityPerimeterConfigurationProvisioningState? provisioningState, IList provisioningIssues, EventHubsNetworkSecurityPerimeter networkSecurityPerimeter, EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation, EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile profile, bool? isBackingResource, IReadOnlyList applicableFeatures, string parentAssociationName, string sourceResourceId, AzureLocation? location) : base(id, name, resourceType, systemData) { ProvisioningState = provisioningState; ProvisioningIssues = provisioningIssues; NetworkSecurityPerimeter = networkSecurityPerimeter; ResourceAssociation = resourceAssociation; Profile = profile; + IsBackingResource = isBackingResource; + ApplicableFeatures = applicableFeatures; + ParentAssociationName = parentAssociationName; + SourceResourceId = sourceResourceId; + Location = location; } /// Provisioning state of NetworkSecurityPerimeter configuration propagation. @@ -52,5 +60,15 @@ internal EventHubsNetworkSecurityPerimeterConfiguration(ResourceIdentifier id, s public EventHubsNetworkSecurityPerimeterConfigurationPropertiesResourceAssociation ResourceAssociation { get; } /// Information about current network profile. public EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile Profile { get; } + /// True if the EventHub namespace is backed by another Azure resource and not visible to end users. + public bool? IsBackingResource { get; } + /// Indicates that the NSP controls related to backing association are only applicable to a specific feature in backing resource's data plane. + public IReadOnlyList ApplicableFeatures { get; } + /// Source Resource Association name. + public string ParentAssociationName { get; } + /// ARM Id of source resource. + public string SourceResourceId { get; } + /// The geo-location where the resource lives. + public AzureLocation? Location { get; } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.Serialization.cs index 9344a1352d30..93f6883abdbb 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionData.Serialization.cs @@ -51,8 +51,8 @@ internal static EventHubsPrivateEndpointConnectionData DeserializeEventHubsPriva ResourceType type = default; Optional systemData = default; Optional privateEndpoint = default; - Optional privateLinkServiceConnectionState = default; - Optional provisioningState = default; + Optional privateLinkServiceConnectionState = default; + Optional provisioningState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location"u8)) @@ -112,7 +112,7 @@ internal static EventHubsPrivateEndpointConnectionData DeserializeEventHubsPriva { continue; } - privateLinkServiceConnectionState = EventHubsPrivateLinkServiceConnectionState.DeserializeEventHubsPrivateLinkServiceConnectionState(property0.Value); + privateLinkServiceConnectionState = ConnectionState.DeserializeConnectionState(property0.Value); continue; } if (property0.NameEquals("provisioningState"u8)) @@ -121,7 +121,7 @@ internal static EventHubsPrivateEndpointConnectionData DeserializeEventHubsPriva { continue; } - provisioningState = new EventHubsPrivateEndpointConnectionProvisioningState(property0.Value.GetString()); + provisioningState = new EndPointProvisioningState(property0.Value.GetString()); continue; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionProvisioningState.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionProvisioningState.cs deleted file mode 100644 index a889cd160fa7..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionProvisioningState.cs +++ /dev/null @@ -1,63 +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 -{ - /// Provisioning state of the Private Endpoint Connection. - public readonly partial struct EventHubsPrivateEndpointConnectionProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EventHubsPrivateEndpointConnectionProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string CreatingValue = "Creating"; - private const string UpdatingValue = "Updating"; - private const string DeletingValue = "Deleting"; - private const string SucceededValue = "Succeeded"; - private const string CanceledValue = "Canceled"; - private const string FailedValue = "Failed"; - - /// Creating. - public static EventHubsPrivateEndpointConnectionProvisioningState Creating { get; } = new EventHubsPrivateEndpointConnectionProvisioningState(CreatingValue); - /// Updating. - public static EventHubsPrivateEndpointConnectionProvisioningState Updating { get; } = new EventHubsPrivateEndpointConnectionProvisioningState(UpdatingValue); - /// Deleting. - public static EventHubsPrivateEndpointConnectionProvisioningState Deleting { get; } = new EventHubsPrivateEndpointConnectionProvisioningState(DeletingValue); - /// Succeeded. - public static EventHubsPrivateEndpointConnectionProvisioningState Succeeded { get; } = new EventHubsPrivateEndpointConnectionProvisioningState(SucceededValue); - /// Canceled. - public static EventHubsPrivateEndpointConnectionProvisioningState Canceled { get; } = new EventHubsPrivateEndpointConnectionProvisioningState(CanceledValue); - /// Failed. - public static EventHubsPrivateEndpointConnectionProvisioningState Failed { get; } = new EventHubsPrivateEndpointConnectionProvisioningState(FailedValue); - /// Determines if two values are the same. - public static bool operator ==(EventHubsPrivateEndpointConnectionProvisioningState left, EventHubsPrivateEndpointConnectionProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventHubsPrivateEndpointConnectionProvisioningState left, EventHubsPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EventHubsPrivateEndpointConnectionProvisioningState(string value) => new EventHubsPrivateEndpointConnectionProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventHubsPrivateEndpointConnectionProvisioningState other && Equals(other); - /// - public bool Equals(EventHubsPrivateEndpointConnectionProvisioningState 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/EventHubsPrivateLinkConnectionStatus.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkConnectionStatus.cs deleted file mode 100644 index 4b671897dd58..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkConnectionStatus.cs +++ /dev/null @@ -1,57 +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 -{ - /// Status of the connection. - public readonly partial struct EventHubsPrivateLinkConnectionStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EventHubsPrivateLinkConnectionStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string PendingValue = "Pending"; - private const string ApprovedValue = "Approved"; - private const string RejectedValue = "Rejected"; - private const string DisconnectedValue = "Disconnected"; - - /// Pending. - public static EventHubsPrivateLinkConnectionStatus Pending { get; } = new EventHubsPrivateLinkConnectionStatus(PendingValue); - /// Approved. - public static EventHubsPrivateLinkConnectionStatus Approved { get; } = new EventHubsPrivateLinkConnectionStatus(ApprovedValue); - /// Rejected. - public static EventHubsPrivateLinkConnectionStatus Rejected { get; } = new EventHubsPrivateLinkConnectionStatus(RejectedValue); - /// Disconnected. - public static EventHubsPrivateLinkConnectionStatus Disconnected { get; } = new EventHubsPrivateLinkConnectionStatus(DisconnectedValue); - /// Determines if two values are the same. - public static bool operator ==(EventHubsPrivateLinkConnectionStatus left, EventHubsPrivateLinkConnectionStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventHubsPrivateLinkConnectionStatus left, EventHubsPrivateLinkConnectionStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EventHubsPrivateLinkConnectionStatus(string value) => new EventHubsPrivateLinkConnectionStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventHubsPrivateLinkConnectionStatus other && Equals(other); - /// - public bool Equals(EventHubsPrivateLinkConnectionStatus 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/EventHubsPrivateLinkResourceData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResource.Serialization.cs similarity index 91% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResource.Serialization.cs index b47ae5feff66..c32e33eb9f60 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResource.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsPrivateLinkResourceData + public partial class EventHubsPrivateLinkResource { - internal static EventHubsPrivateLinkResourceData DeserializeEventHubsPrivateLinkResourceData(JsonElement element) + internal static EventHubsPrivateLinkResource DeserializeEventHubsPrivateLinkResource(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -99,7 +99,7 @@ internal static EventHubsPrivateLinkResourceData DeserializeEventHubsPrivateLink continue; } } - return new EventHubsPrivateLinkResourceData(id, name, type, systemData.Value, groupId.Value, Optional.ToList(requiredMembers), Optional.ToList(requiredZoneNames)); + return new EventHubsPrivateLinkResource(id, name, type, systemData.Value, groupId.Value, Optional.ToList(requiredMembers), Optional.ToList(requiredZoneNames)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResource.cs similarity index 78% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResource.cs index 3fce27fd3f62..cbf680a21b28 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResource.cs @@ -12,16 +12,16 @@ namespace Azure.ResourceManager.EventHubs.Models { /// Information of the private link resource. - public partial class EventHubsPrivateLinkResourceData : ResourceData + public partial class EventHubsPrivateLinkResource : ResourceData { - /// Initializes a new instance of EventHubsPrivateLinkResourceData. - internal EventHubsPrivateLinkResourceData() + /// Initializes a new instance of EventHubsPrivateLinkResource. + internal EventHubsPrivateLinkResource() { RequiredMembers = new ChangeTrackingList(); RequiredZoneNames = new ChangeTrackingList(); } - /// Initializes a new instance of EventHubsPrivateLinkResourceData. + /// Initializes a new instance of EventHubsPrivateLinkResource. /// The id. /// The name. /// The resourceType. @@ -29,7 +29,7 @@ internal EventHubsPrivateLinkResourceData() /// The private link resource group id. /// The private link resource required member names. /// The private link resource Private link DNS zone name. - internal EventHubsPrivateLinkResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string groupId, IReadOnlyList requiredMembers, IReadOnlyList requiredZoneNames) : base(id, name, resourceType, systemData) + internal EventHubsPrivateLinkResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string groupId, IReadOnlyList requiredMembers, IReadOnlyList requiredZoneNames) : base(id, name, resourceType, systemData) { GroupId = groupId; RequiredMembers = requiredMembers; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPublicNetworkAccessFlag.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPublicNetworkAccessFlag.cs deleted file mode 100644 index d1b17b1c603d..000000000000 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPublicNetworkAccessFlag.cs +++ /dev/null @@ -1,54 +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 -{ - /// This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. - public readonly partial struct EventHubsPublicNetworkAccessFlag : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EventHubsPublicNetworkAccessFlag(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - private const string SecuredByPerimeterValue = "SecuredByPerimeter"; - - /// Enabled. - public static EventHubsPublicNetworkAccessFlag Enabled { get; } = new EventHubsPublicNetworkAccessFlag(EnabledValue); - /// Disabled. - public static EventHubsPublicNetworkAccessFlag Disabled { get; } = new EventHubsPublicNetworkAccessFlag(DisabledValue); - /// SecuredByPerimeter. - public static EventHubsPublicNetworkAccessFlag SecuredByPerimeter { get; } = new EventHubsPublicNetworkAccessFlag(SecuredByPerimeterValue); - /// Determines if two values are the same. - public static bool operator ==(EventHubsPublicNetworkAccessFlag left, EventHubsPublicNetworkAccessFlag right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventHubsPublicNetworkAccessFlag left, EventHubsPublicNetworkAccessFlag right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EventHubsPublicNetworkAccessFlag(string value) => new EventHubsPublicNetworkAccessFlag(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventHubsPublicNetworkAccessFlag other && Equals(other); - /// - public bool Equals(EventHubsPublicNetworkAccessFlag 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/EventHubsKeyVaultProperties.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/KeyVaultProperties.Serialization.cs similarity index 89% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/KeyVaultProperties.Serialization.cs index 773cdf2f1026..d29170acb3e1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/KeyVaultProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsKeyVaultProperties : IUtf8JsonSerializable + public partial class KeyVaultProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsKeyVaultProperties DeserializeEventHubsKeyVaultProperties(JsonElement element) + internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -80,7 +80,7 @@ internal static EventHubsKeyVaultProperties DeserializeEventHubsKeyVaultProperti continue; } } - return new EventHubsKeyVaultProperties(keyName.Value, keyVaultUri.Value, keyVersion.Value, identity.Value); + return new KeyVaultProperties(keyName.Value, keyVaultUri.Value, keyVersion.Value, identity.Value); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/KeyVaultProperties.cs similarity index 78% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/KeyVaultProperties.cs index 394326bb99da..a71a0b5c7013 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsKeyVaultProperties.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/KeyVaultProperties.cs @@ -10,19 +10,19 @@ namespace Azure.ResourceManager.EventHubs.Models { /// Properties to configure keyVault Properties. - public partial class EventHubsKeyVaultProperties + public partial class KeyVaultProperties { - /// Initializes a new instance of EventHubsKeyVaultProperties. - public EventHubsKeyVaultProperties() + /// Initializes a new instance of KeyVaultProperties. + public KeyVaultProperties() { } - /// Initializes a new instance of EventHubsKeyVaultProperties. + /// Initializes a new instance of KeyVaultProperties. /// Name of the Key from KeyVault. /// Uri of KeyVault. /// Key Version. /// - internal EventHubsKeyVaultProperties(string keyName, Uri keyVaultUri, string keyVersion, UserAssignedIdentityProperties identity) + internal KeyVaultProperties(string keyName, Uri keyVaultUri, string keyVersion, UserAssignedIdentityProperties identity) { KeyName = keyName; KeyVaultUri = keyVaultUri; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetIPRules.Serialization.cs similarity index 76% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetIPRules.Serialization.cs index f377852d108a..5bffb8f72d3d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetIPRules.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsNetworkRuleSetIPRules : IUtf8JsonSerializable + public partial class NWRuleSetIPRules : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,14 +28,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsNetworkRuleSetIPRules DeserializeEventHubsNetworkRuleSetIPRules(JsonElement element) + internal static NWRuleSetIPRules DeserializeNWRuleSetIPRules(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } Optional ipMask = default; - Optional action = default; + Optional action = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("ipMask"u8)) @@ -49,11 +49,11 @@ internal static EventHubsNetworkRuleSetIPRules DeserializeEventHubsNetworkRuleSe { continue; } - action = new EventHubsNetworkRuleIPAction(property.Value.GetString()); + action = new NetworkRuleIPAction(property.Value.GetString()); continue; } } - return new EventHubsNetworkRuleSetIPRules(ipMask.Value, Optional.ToNullable(action)); + return new NWRuleSetIPRules(ipMask.Value, Optional.ToNullable(action)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetIPRules.cs similarity index 58% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetIPRules.cs index 86477983255f..a5b5142090d5 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetIPRules.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetIPRules.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.EventHubs.Models { /// The response from the List namespace operation. - public partial class EventHubsNetworkRuleSetIPRules + public partial class NWRuleSetIPRules { - /// Initializes a new instance of EventHubsNetworkRuleSetIPRules. - public EventHubsNetworkRuleSetIPRules() + /// Initializes a new instance of NWRuleSetIPRules. + public NWRuleSetIPRules() { } - /// Initializes a new instance of EventHubsNetworkRuleSetIPRules. + /// Initializes a new instance of NWRuleSetIPRules. /// IP Mask. /// The IP Filter Action. - internal EventHubsNetworkRuleSetIPRules(string ipMask, EventHubsNetworkRuleIPAction? action) + internal NWRuleSetIPRules(string ipMask, NetworkRuleIPAction? action) { IPMask = ipMask; Action = action; @@ -27,6 +27,6 @@ internal EventHubsNetworkRuleSetIPRules(string ipMask, EventHubsNetworkRuleIPAct /// IP Mask. public string IPMask { get; set; } /// The IP Filter Action. - public EventHubsNetworkRuleIPAction? Action { get; set; } + public NetworkRuleIPAction? Action { get; set; } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetVirtualNetworkRules.Serialization.cs similarity index 84% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetVirtualNetworkRules.Serialization.cs index 873c2fcac77b..c060a81ad778 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetVirtualNetworkRules.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.EventHubs.Models { - public partial class EventHubsNetworkRuleSetVirtualNetworkRules : IUtf8JsonSerializable + public partial class NWRuleSetVirtualNetworkRules : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,7 +29,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsNetworkRuleSetVirtualNetworkRules DeserializeEventHubsNetworkRuleSetVirtualNetworkRules(JsonElement element) + internal static NWRuleSetVirtualNetworkRules DeserializeNWRuleSetVirtualNetworkRules(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -58,7 +58,7 @@ internal static EventHubsNetworkRuleSetVirtualNetworkRules DeserializeEventHubsN continue; } } - return new EventHubsNetworkRuleSetVirtualNetworkRules(subnet, Optional.ToNullable(ignoreMissingVnetServiceEndpoint)); + return new NWRuleSetVirtualNetworkRules(subnet, Optional.ToNullable(ignoreMissingVnetServiceEndpoint)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetVirtualNetworkRules.cs similarity index 73% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetVirtualNetworkRules.cs index 20631777cba9..851412063f30 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetVirtualNetworkRules.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NWRuleSetVirtualNetworkRules.cs @@ -11,17 +11,17 @@ namespace Azure.ResourceManager.EventHubs.Models { /// The response from the List namespace operation. - public partial class EventHubsNetworkRuleSetVirtualNetworkRules + public partial class NWRuleSetVirtualNetworkRules { - /// Initializes a new instance of EventHubsNetworkRuleSetVirtualNetworkRules. - public EventHubsNetworkRuleSetVirtualNetworkRules() + /// Initializes a new instance of NWRuleSetVirtualNetworkRules. + public NWRuleSetVirtualNetworkRules() { } - /// Initializes a new instance of EventHubsNetworkRuleSetVirtualNetworkRules. + /// Initializes a new instance of NWRuleSetVirtualNetworkRules. /// Subnet properties. /// Value that indicates whether to ignore missing Vnet Service Endpoint. - internal EventHubsNetworkRuleSetVirtualNetworkRules(WritableSubResource subnet, bool? ignoreMissingVnetServiceEndpoint) + internal NWRuleSetVirtualNetworkRules(WritableSubResource subnet, bool? ignoreMissingVnetServiceEndpoint) { Subnet = subnet; IgnoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleIPAction.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleIPAction.cs new file mode 100644 index 000000000000..3790a1c5ed82 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleIPAction.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// The IP Filter Action. + public readonly partial struct NetworkRuleIPAction : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkRuleIPAction(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + + /// Allow. + public static NetworkRuleIPAction Allow { get; } = new NetworkRuleIPAction(AllowValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkRuleIPAction left, NetworkRuleIPAction right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkRuleIPAction left, NetworkRuleIPAction right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkRuleIPAction(string value) => new NetworkRuleIPAction(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkRuleIPAction other && Equals(other); + /// + public bool Equals(NetworkRuleIPAction 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/EventHubsNetworkRuleSetData.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetData.Serialization.cs similarity index 80% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetData.Serialization.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetData.Serialization.cs index 1c137a51a8a8..a46222316f93 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetData.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.EventHubs { - public partial class EventHubsNetworkRuleSetData : IUtf8JsonSerializable + public partial class NetworkRuleSetData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -59,7 +59,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EventHubsNetworkRuleSetData DeserializeEventHubsNetworkRuleSetData(JsonElement element) + internal static NetworkRuleSetData DeserializeNetworkRuleSetData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -71,10 +71,10 @@ internal static EventHubsNetworkRuleSetData DeserializeEventHubsNetworkRuleSetDa ResourceType type = default; Optional systemData = default; Optional trustedServiceAccessEnabled = default; - Optional defaultAction = default; - Optional> virtualNetworkRules = default; - Optional> ipRules = default; - Optional publicNetworkAccess = default; + Optional defaultAction = default; + Optional> virtualNetworkRules = default; + Optional> ipRules = default; + Optional publicNetworkAccess = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location"u8)) @@ -134,7 +134,7 @@ internal static EventHubsNetworkRuleSetData DeserializeEventHubsNetworkRuleSetDa { continue; } - defaultAction = new EventHubsNetworkRuleSetDefaultAction(property0.Value.GetString()); + defaultAction = new DefaultAction(property0.Value.GetString()); continue; } if (property0.NameEquals("virtualNetworkRules"u8)) @@ -143,10 +143,10 @@ internal static EventHubsNetworkRuleSetData DeserializeEventHubsNetworkRuleSetDa { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(EventHubsNetworkRuleSetVirtualNetworkRules.DeserializeEventHubsNetworkRuleSetVirtualNetworkRules(item)); + array.Add(NWRuleSetVirtualNetworkRules.DeserializeNWRuleSetVirtualNetworkRules(item)); } virtualNetworkRules = array; continue; @@ -157,10 +157,10 @@ internal static EventHubsNetworkRuleSetData DeserializeEventHubsNetworkRuleSetDa { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(EventHubsNetworkRuleSetIPRules.DeserializeEventHubsNetworkRuleSetIPRules(item)); + array.Add(NWRuleSetIPRules.DeserializeNWRuleSetIPRules(item)); } ipRules = array; continue; @@ -171,14 +171,14 @@ internal static EventHubsNetworkRuleSetData DeserializeEventHubsNetworkRuleSetDa { continue; } - publicNetworkAccess = new EventHubsPublicNetworkAccessFlag(property0.Value.GetString()); + publicNetworkAccess = new PublicNetworkAccessFlag(property0.Value.GetString()); continue; } } continue; } } - return new EventHubsNetworkRuleSetData(id, name, type, systemData.Value, Optional.ToNullable(trustedServiceAccessEnabled), Optional.ToNullable(defaultAction), Optional.ToList(virtualNetworkRules), Optional.ToList(ipRules), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(location)); + return new NetworkRuleSetData(id, name, type, systemData.Value, Optional.ToNullable(trustedServiceAccessEnabled), Optional.ToNullable(defaultAction), Optional.ToList(virtualNetworkRules), Optional.ToList(ipRules), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(location)); } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.Serialization.cs index 79df9aa3468c..4b746aa384ff 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.Serialization.cs @@ -20,7 +20,7 @@ internal static NetworkRuleSetListResult DeserializeNetworkRuleSetListResult(Jso { return null; } - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -30,10 +30,10 @@ internal static NetworkRuleSetListResult DeserializeNetworkRuleSetListResult(Jso { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(EventHubsNetworkRuleSetData.DeserializeEventHubsNetworkRuleSetData(item)); + array.Add(NetworkRuleSetData.DeserializeNetworkRuleSetData(item)); } value = array; continue; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs index 5ab93bc38a84..8143608f1e4b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs @@ -17,20 +17,20 @@ internal partial class NetworkRuleSetListResult /// Initializes a new instance of NetworkRuleSetListResult. internal NetworkRuleSetListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of NetworkRuleSetListResult. /// Result of the List NetworkRuleSet operation. /// Link to the next set of results. Not empty if Value contains incomplete list of NetworkRuleSet. - internal NetworkRuleSetListResult(IReadOnlyList value, string nextLink) + internal NetworkRuleSetListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Result of the List NetworkRuleSet operation. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Link to the next set of results. Not empty if Value contains incomplete list of NetworkRuleSet. public string NextLink { get; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkConnectionStatus.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkConnectionStatus.cs new file mode 100644 index 000000000000..69b0b1cbb8fc --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkConnectionStatus.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Status of the connection. + public readonly partial struct PrivateLinkConnectionStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PrivateLinkConnectionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PendingValue = "Pending"; + private const string ApprovedValue = "Approved"; + private const string RejectedValue = "Rejected"; + private const string DisconnectedValue = "Disconnected"; + + /// Pending. + public static PrivateLinkConnectionStatus Pending { get; } = new PrivateLinkConnectionStatus(PendingValue); + /// Approved. + public static PrivateLinkConnectionStatus Approved { get; } = new PrivateLinkConnectionStatus(ApprovedValue); + /// Rejected. + public static PrivateLinkConnectionStatus Rejected { get; } = new PrivateLinkConnectionStatus(RejectedValue); + /// Disconnected. + public static PrivateLinkConnectionStatus Disconnected { get; } = new PrivateLinkConnectionStatus(DisconnectedValue); + /// Determines if two values are the same. + public static bool operator ==(PrivateLinkConnectionStatus left, PrivateLinkConnectionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PrivateLinkConnectionStatus left, PrivateLinkConnectionStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PrivateLinkConnectionStatus(string value) => new PrivateLinkConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PrivateLinkConnectionStatus other && Equals(other); + /// + public bool Equals(PrivateLinkConnectionStatus 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/PrivateLinkResourcesListResult.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.Serialization.cs index ad11b5506025..1fbb2f451dba 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.Serialization.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.Serialization.cs @@ -19,7 +19,7 @@ internal static PrivateLinkResourcesListResult DeserializePrivateLinkResourcesLi { return null; } - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -29,10 +29,10 @@ internal static PrivateLinkResourcesListResult DeserializePrivateLinkResourcesLi { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(EventHubsPrivateLinkResourceData.DeserializeEventHubsPrivateLinkResourceData(item)); + array.Add(EventHubsPrivateLinkResource.DeserializeEventHubsPrivateLinkResource(item)); } value = array; continue; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs index 4e7d6e08d4be..17113bb26b72 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs @@ -16,20 +16,20 @@ internal partial class PrivateLinkResourcesListResult /// Initializes a new instance of PrivateLinkResourcesListResult. internal PrivateLinkResourcesListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of PrivateLinkResourcesListResult. /// A collection of private link resources. /// A link for the next page of private link resources. - internal PrivateLinkResourcesListResult(IReadOnlyList value, string nextLink) + internal PrivateLinkResourcesListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// A collection of private link resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// A link for the next page of private link resources. public string NextLink { get; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ProvisioningState.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..1e19988e5767 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Provisioning state of the Cluster. + public readonly partial struct ProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UnknownValue = "Unknown"; + private const string CreatingValue = "Creating"; + private const string DeletingValue = "Deleting"; + private const string ScalingValue = "Scaling"; + private const string ActiveValue = "Active"; + private const string FailedValue = "Failed"; + private const string SucceededValue = "Succeeded"; + private const string CanceledValue = "Canceled"; + + /// Unknown. + public static ProvisioningState Unknown { get; } = new ProvisioningState(UnknownValue); + /// Creating. + public static ProvisioningState Creating { get; } = new ProvisioningState(CreatingValue); + /// Deleting. + public static ProvisioningState Deleting { get; } = new ProvisioningState(DeletingValue); + /// Scaling. + public static ProvisioningState Scaling { get; } = new ProvisioningState(ScalingValue); + /// Active. + public static ProvisioningState Active { get; } = new ProvisioningState(ActiveValue); + /// Failed. + public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); + /// Succeeded. + public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); + /// Canceled. + public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); + /// + public bool Equals(ProvisioningState 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/PublicNetworkAccessFlag.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PublicNetworkAccessFlag.cs new file mode 100644 index 000000000000..337a0d49091a --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PublicNetworkAccessFlag.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. + public readonly partial struct PublicNetworkAccessFlag : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PublicNetworkAccessFlag(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + private const string SecuredByPerimeterValue = "SecuredByPerimeter"; + + /// Enabled. + public static PublicNetworkAccessFlag Enabled { get; } = new PublicNetworkAccessFlag(EnabledValue); + /// Disabled. + public static PublicNetworkAccessFlag Disabled { get; } = new PublicNetworkAccessFlag(DisabledValue); + /// SecuredByPerimeter. + public static PublicNetworkAccessFlag SecuredByPerimeter { get; } = new PublicNetworkAccessFlag(SecuredByPerimeterValue); + /// Determines if two values are the same. + public static bool operator ==(PublicNetworkAccessFlag left, PublicNetworkAccessFlag right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PublicNetworkAccessFlag left, PublicNetworkAccessFlag right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PublicNetworkAccessFlag(string value) => new PublicNetworkAccessFlag(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PublicNetworkAccessFlag other && Equals(other); + /// + public bool Equals(PublicNetworkAccessFlag 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/RetentionDescription.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/RetentionDescription.cs index f56f84660210..a792b2792953 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/RetentionDescription.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/RetentionDescription.cs @@ -17,8 +17,8 @@ public RetentionDescription() /// Initializes a new instance of RetentionDescription. /// Enumerates the possible values for cleanup policy. - /// Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compaction the returned value of this property is Long.MaxValue. - /// Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compaction. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub. + /// Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue. + /// Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub. internal RetentionDescription(CleanupPolicyRetentionDescription? cleanupPolicy, long? retentionTimeInHours, int? tombstoneRetentionTimeInHours) { CleanupPolicy = cleanupPolicy; @@ -28,9 +28,9 @@ internal RetentionDescription(CleanupPolicyRetentionDescription? cleanupPolicy, /// Enumerates the possible values for cleanup policy. public CleanupPolicyRetentionDescription? CleanupPolicy { get; set; } - /// Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compaction the returned value of this property is Long.MaxValue. + /// Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue. public long? RetentionTimeInHours { get; set; } - /// Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compaction. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub. + /// Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub. public int? TombstoneRetentionTimeInHours { get; set; } } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/StartDayOfWeek.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/StartDayOfWeek.cs new file mode 100644 index 000000000000..118f18a44028 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/StartDayOfWeek.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Preferred day of the week in UTC time to begin an upgrade. If 'Any' is selected, upgrade will proceed at any given weekday. + public readonly partial struct StartDayOfWeek : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StartDayOfWeek(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SundayValue = "Sunday"; + private const string MondayValue = "Monday"; + private const string TuesdayValue = "Tuesday"; + private const string WednesdayValue = "Wednesday"; + private const string ThursdayValue = "Thursday"; + private const string FridayValue = "Friday"; + private const string SaturdayValue = "Saturday"; + private const string AnyValue = "Any"; + + /// Sunday. + public static StartDayOfWeek Sunday { get; } = new StartDayOfWeek(SundayValue); + /// Monday. + public static StartDayOfWeek Monday { get; } = new StartDayOfWeek(MondayValue); + /// Tuesday. + public static StartDayOfWeek Tuesday { get; } = new StartDayOfWeek(TuesdayValue); + /// Wednesday. + public static StartDayOfWeek Wednesday { get; } = new StartDayOfWeek(WednesdayValue); + /// Thursday. + public static StartDayOfWeek Thursday { get; } = new StartDayOfWeek(ThursdayValue); + /// Friday. + public static StartDayOfWeek Friday { get; } = new StartDayOfWeek(FridayValue); + /// Saturday. + public static StartDayOfWeek Saturday { get; } = new StartDayOfWeek(SaturdayValue); + /// Any. + public static StartDayOfWeek Any { get; } = new StartDayOfWeek(AnyValue); + /// Determines if two values are the same. + public static bool operator ==(StartDayOfWeek left, StartDayOfWeek right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StartDayOfWeek left, StartDayOfWeek right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator StartDayOfWeek(string value) => new StartDayOfWeek(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StartDayOfWeek other && Equals(other); + /// + public bool Equals(StartDayOfWeek 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/UpgradePreferences.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/UpgradePreferences.Serialization.cs new file mode 100644 index 000000000000..555698d7833f --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/UpgradePreferences.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.EventHubs.Models +{ + public partial class UpgradePreferences : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(StartDayOfWeek)) + { + writer.WritePropertyName("startDayOfWeek"u8); + writer.WriteStringValue(StartDayOfWeek.Value.ToString()); + } + if (Optional.IsDefined(StartHourOfDay)) + { + writer.WritePropertyName("startHourOfDay"u8); + writer.WriteNumberValue(StartHourOfDay.Value); + } + writer.WriteEndObject(); + } + + internal static UpgradePreferences DeserializeUpgradePreferences(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional startDayOfWeek = default; + Optional startHourOfDay = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startDayOfWeek"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startDayOfWeek = new StartDayOfWeek(property.Value.GetString()); + continue; + } + if (property.NameEquals("startHourOfDay"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startHourOfDay = property.Value.GetInt32(); + continue; + } + } + return new UpgradePreferences(Optional.ToNullable(startDayOfWeek), Optional.ToNullable(startHourOfDay)); + } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/UpgradePreferences.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/UpgradePreferences.cs new file mode 100644 index 000000000000..cf1bc1be3c23 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/UpgradePreferences.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.EventHubs.Models +{ + /// Contains all settings for the cluster upgrade window. + public partial class UpgradePreferences + { + /// Initializes a new instance of UpgradePreferences. + public UpgradePreferences() + { + } + + /// Initializes a new instance of UpgradePreferences. + /// Preferred day of the week in UTC time to begin an upgrade. If 'Any' is selected, upgrade will proceed at any given weekday. + /// Preferred hour of the day in UTC time to begin an upgrade. + internal UpgradePreferences(StartDayOfWeek? startDayOfWeek, int? startHourOfDay) + { + StartDayOfWeek = startDayOfWeek; + StartHourOfDay = startHourOfDay; + } + + /// Preferred day of the week in UTC time to begin an upgrade. If 'Any' is selected, upgrade will proceed at any given weekday. + public StartDayOfWeek? StartDayOfWeek { get; set; } + /// Preferred hour of the day in UTC time to begin an upgrade. + public int? StartHourOfDay { get; set; } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSetData.cs similarity index 64% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetData.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSetData.cs index eb11397024ad..e9fa770c4fec 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSetData.cs @@ -13,19 +13,19 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A class representing the EventHubsNetworkRuleSet data model. + /// A class representing the NetworkRuleSet data model. /// Description of topic resource. /// - public partial class EventHubsNetworkRuleSetData : ResourceData + public partial class NetworkRuleSetData : ResourceData { - /// Initializes a new instance of EventHubsNetworkRuleSetData. - public EventHubsNetworkRuleSetData() + /// Initializes a new instance of NetworkRuleSetData. + public NetworkRuleSetData() { - VirtualNetworkRules = new ChangeTrackingList(); - IPRules = new ChangeTrackingList(); + VirtualNetworkRules = new ChangeTrackingList(); + IPRules = new ChangeTrackingList(); } - /// Initializes a new instance of EventHubsNetworkRuleSetData. + /// Initializes a new instance of NetworkRuleSetData. /// The id. /// The name. /// The resourceType. @@ -36,7 +36,7 @@ public EventHubsNetworkRuleSetData() /// List of IpRules. /// This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. /// The geo-location where the resource lives. - internal EventHubsNetworkRuleSetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? trustedServiceAccessEnabled, EventHubsNetworkRuleSetDefaultAction? defaultAction, IList virtualNetworkRules, IList ipRules, EventHubsPublicNetworkAccessFlag? publicNetworkAccess, AzureLocation? location) : base(id, name, resourceType, systemData) + internal NetworkRuleSetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? trustedServiceAccessEnabled, DefaultAction? defaultAction, IList virtualNetworkRules, IList ipRules, PublicNetworkAccessFlag? publicNetworkAccess, AzureLocation? location) : base(id, name, resourceType, systemData) { TrustedServiceAccessEnabled = trustedServiceAccessEnabled; DefaultAction = defaultAction; @@ -49,13 +49,13 @@ internal EventHubsNetworkRuleSetData(ResourceIdentifier id, string name, Resourc /// Value that indicates whether Trusted Service Access is Enabled or not. public bool? TrustedServiceAccessEnabled { get; set; } /// Default Action for Network Rule Set. - public EventHubsNetworkRuleSetDefaultAction? DefaultAction { get; set; } + public DefaultAction? DefaultAction { get; set; } /// List VirtualNetwork Rules. - public IList VirtualNetworkRules { get; } + public IList VirtualNetworkRules { get; } /// List of IpRules. - public IList IPRules { get; } + public IList IPRules { get; } /// This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. - public EventHubsPublicNetworkAccessFlag? PublicNetworkAccess { get; set; } + public PublicNetworkAccessFlag? PublicNetworkAccess { get; set; } /// The geo-location where the resource lives. public AzureLocation? Location { get; } } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSetResource.cs similarity index 66% rename from sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs rename to sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSetResource.cs index 2e2cb4327de2..4dc86212767d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSetResource.cs @@ -17,14 +17,14 @@ namespace Azure.ResourceManager.EventHubs { /// - /// A Class representing an EventHubsNetworkRuleSet along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetEventHubsNetworkRuleSetResource method. - /// Otherwise you can get one from its parent resource using the GetEventHubsNetworkRuleSet method. + /// A Class representing a NetworkRuleSet along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetNetworkRuleSetResource method. + /// Otherwise you can get one from its parent resource using the GetNetworkRuleSet method. /// - public partial class EventHubsNetworkRuleSetResource : ArmResource + public partial class NetworkRuleSetResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The subscriptionId. /// The resourceGroupName. /// The namespaceName. @@ -34,32 +34,32 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _eventHubsNetworkRuleSetNamespacesClientDiagnostics; - private readonly NamespacesRestOperations _eventHubsNetworkRuleSetNamespacesRestClient; - private readonly EventHubsNetworkRuleSetData _data; + private readonly ClientDiagnostics _networkRuleSetNamespacesClientDiagnostics; + private readonly NamespacesRestOperations _networkRuleSetNamespacesRestClient; + private readonly NetworkRuleSetData _data; - /// Initializes a new instance of the class for mocking. - protected EventHubsNetworkRuleSetResource() + /// Initializes a new instance of the class for mocking. + protected NetworkRuleSetResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal EventHubsNetworkRuleSetResource(ArmClient client, EventHubsNetworkRuleSetData data) : this(client, data.Id) + internal NetworkRuleSetResource(ArmClient client, NetworkRuleSetData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal EventHubsNetworkRuleSetResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal NetworkRuleSetResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _eventHubsNetworkRuleSetNamespacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string eventHubsNetworkRuleSetNamespacesApiVersion); - _eventHubsNetworkRuleSetNamespacesRestClient = new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, eventHubsNetworkRuleSetNamespacesApiVersion); + _networkRuleSetNamespacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string networkRuleSetNamespacesApiVersion); + _networkRuleSetNamespacesRestClient = new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, networkRuleSetNamespacesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,7 +73,7 @@ internal EventHubsNetworkRuleSetResource(ArmClient client, ResourceIdentifier id /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual EventHubsNetworkRuleSetData Data + public virtual NetworkRuleSetData Data { get { @@ -103,16 +103,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _eventHubsNetworkRuleSetNamespacesClientDiagnostics.CreateScope("EventHubsNetworkRuleSetResource.Get"); + using var scope = _networkRuleSetNamespacesClientDiagnostics.CreateScope("NetworkRuleSetResource.Get"); scope.Start(); try { - var response = await _eventHubsNetworkRuleSetNamespacesRestClient.GetNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var response = await _networkRuleSetNamespacesRestClient.GetNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new NetworkRuleSetResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -135,16 +135,16 @@ public virtual async Task> GetAsync(Ca /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _eventHubsNetworkRuleSetNamespacesClientDiagnostics.CreateScope("EventHubsNetworkRuleSetResource.Get"); + using var scope = _networkRuleSetNamespacesClientDiagnostics.CreateScope("NetworkRuleSetResource.Get"); scope.Start(); try { - var response = _eventHubsNetworkRuleSetNamespacesRestClient.GetNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var response = _networkRuleSetNamespacesRestClient.GetNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new NetworkRuleSetResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -170,16 +170,16 @@ public virtual Response Get(CancellationToken c /// The Namespace IpFilterRule. /// The cancellation token to use. /// is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, EventHubsNetworkRuleSetData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, NetworkRuleSetData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsNetworkRuleSetNamespacesClientDiagnostics.CreateScope("EventHubsNetworkRuleSetResource.CreateOrUpdate"); + using var scope = _networkRuleSetNamespacesClientDiagnostics.CreateScope("NetworkRuleSetResource.CreateOrUpdate"); scope.Start(); try { - var response = await _eventHubsNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var response = await _networkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new EventHubsArmOperation(Response.FromValue(new NetworkRuleSetResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -208,16 +208,16 @@ public virtual async Task> CreateO /// The Namespace IpFilterRule. /// The cancellation token to use. /// is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, EventHubsNetworkRuleSetData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, NetworkRuleSetData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _eventHubsNetworkRuleSetNamespacesClientDiagnostics.CreateScope("EventHubsNetworkRuleSetResource.CreateOrUpdate"); + using var scope = _networkRuleSetNamespacesClientDiagnostics.CreateScope("NetworkRuleSetResource.CreateOrUpdate"); scope.Start(); try { - var response = _eventHubsNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var response = _networkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); + var operation = new EventHubsArmOperation(Response.FromValue(new NetworkRuleSetResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; 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 334d502c7347..234703402f50 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGroupRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 3119ef531650..940ab63bb3f3 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs @@ -33,7 +33,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 ?? "2022-10-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -271,7 +271,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,13 +283,13 @@ public async Task> GetAsync(string subscriptionId { case 200: { - EventHubsClusterData value = default; + ClusterData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EventHubsClusterData.DeserializeEventHubsClusterData(document.RootElement); + value = ClusterData.DeserializeClusterData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EventHubsClusterData)null, message.Response); + return Response.FromValue((ClusterData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -302,7 +302,7 @@ public async Task> GetAsync(string subscriptionId /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -314,19 +314,19 @@ public Response Get(string subscriptionId, string resource { case 200: { - EventHubsClusterData value = default; + ClusterData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EventHubsClusterData.DeserializeEventHubsClusterData(document.RootElement); + value = ClusterData.DeserializeClusterData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EventHubsClusterData)null, message.Response); + return Response.FromValue((ClusterData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -358,7 +358,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -386,7 +386,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string clusterName, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -406,7 +406,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -438,7 +438,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -466,7 +466,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string clusterName, ClusterData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -637,6 +637,75 @@ public Response ListNamespaces(string subscriptionId, s } } + internal HttpMessage CreateTriggerUpgradePostRequest(string subscriptionId, string resourceGroupName, string clusterName) + { + 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/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/triggerUpgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Trigger pending cluster upgrades if any. Bypasses any upgrade preferences set by customer. + /// 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 name of the Event Hubs Cluster. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task TriggerUpgradePostAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + + using var message = CreateTriggerUpgradePostRequest(subscriptionId, resourceGroupName, clusterName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Trigger pending cluster upgrades if any. Bypasses any upgrade preferences set by customer. + /// 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 name of the Event Hubs Cluster. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response TriggerUpgradePost(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + + using var message = CreateTriggerUpgradePostRequest(subscriptionId, resourceGroupName, clusterName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); 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 bd966cee6e1b..64713edfddd6 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public ConfigurationRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 a9f409a9952c..1ba0249aec39 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ConsumerGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 35703864ba9a..23662360bdb1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs @@ -33,7 +33,7 @@ public DisasterRecoveryConfigsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 526d8403c246..3ed4f9eba3a0 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs @@ -33,7 +33,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 ?? "2022-10-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 9bbf5ed334d1..d3ecad064356 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -33,7 +33,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 ?? "2022-10-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -177,7 +177,7 @@ public Response ListByResourceGroup(string subscriptionId } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EHNamespaceData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -209,7 +209,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string namespaceName, EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -237,7 +237,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string namespaceName, EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -356,7 +356,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -368,13 +368,13 @@ public async Task> GetAsync(string subscription { case 200: { - EventHubsNamespaceData value = default; + EHNamespaceData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EventHubsNamespaceData.DeserializeEventHubsNamespaceData(document.RootElement); + value = EHNamespaceData.DeserializeEHNamespaceData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EventHubsNamespaceData)null, message.Response); + return Response.FromValue((EHNamespaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -387,7 +387,7 @@ public async Task> GetAsync(string subscription /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -399,19 +399,19 @@ public Response Get(string subscriptionId, string resour { case 200: { - EventHubsNamespaceData value = default; + EHNamespaceData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EventHubsNamespaceData.DeserializeEventHubsNamespaceData(document.RootElement); + value = EHNamespaceData.DeserializeEHNamespaceData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EventHubsNamespaceData)null, message.Response); + return Response.FromValue((EHNamespaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EHNamespaceData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -443,7 +443,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string namespaceName, EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -457,13 +457,13 @@ public async Task> UpdateAsync(string subscript case 200: case 201: { - EventHubsNamespaceData value = default; + EHNamespaceData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EventHubsNamespaceData.DeserializeEventHubsNamespaceData(document.RootElement); + value = EHNamespaceData.DeserializeEHNamespaceData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((EventHubsNamespaceData)null, message.Response); + return Response.FromValue((EHNamespaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -477,7 +477,7 @@ public async Task> UpdateAsync(string subscript /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string namespaceName, EHNamespaceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -491,19 +491,19 @@ public Response Update(string subscriptionId, string res case 200: case 201: { - EventHubsNamespaceData value = default; + EHNamespaceData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EventHubsNamespaceData.DeserializeEventHubsNamespaceData(document.RootElement); + value = EHNamespaceData.DeserializeEHNamespaceData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((EventHubsNamespaceData)null, message.Response); + return Response.FromValue((EHNamespaceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNetworkRuleSetData data) + internal HttpMessage CreateCreateOrUpdateNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName, NetworkRuleSetData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -536,7 +536,7 @@ internal HttpMessage CreateCreateOrUpdateNetworkRuleSetRequest(string subscripti /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateNetworkRuleSetAsync(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNetworkRuleSetData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateNetworkRuleSetAsync(string subscriptionId, string resourceGroupName, string namespaceName, NetworkRuleSetData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -549,9 +549,9 @@ public async Task> CreateOrUpdateNetworkRu { case 200: { - EventHubsNetworkRuleSetData value = default; + NetworkRuleSetData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EventHubsNetworkRuleSetData.DeserializeEventHubsNetworkRuleSetData(document.RootElement); + value = NetworkRuleSetData.DeserializeNetworkRuleSetData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -567,7 +567,7 @@ public async Task> CreateOrUpdateNetworkRu /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdateNetworkRuleSet(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNetworkRuleSetData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdateNetworkRuleSet(string subscriptionId, string resourceGroupName, string namespaceName, NetworkRuleSetData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -580,9 +580,9 @@ public Response CreateOrUpdateNetworkRuleSet(string { case 200: { - EventHubsNetworkRuleSetData value = default; + NetworkRuleSetData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EventHubsNetworkRuleSetData.DeserializeEventHubsNetworkRuleSetData(document.RootElement); + value = NetworkRuleSetData.DeserializeNetworkRuleSetData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -618,7 +618,7 @@ internal HttpMessage CreateGetNetworkRuleSetRequest(string subscriptionId, strin /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetNetworkRuleSetAsync(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) + public async Task> GetNetworkRuleSetAsync(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -630,13 +630,13 @@ public async Task> GetNetworkRuleSetAsync( { case 200: { - EventHubsNetworkRuleSetData value = default; + NetworkRuleSetData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EventHubsNetworkRuleSetData.DeserializeEventHubsNetworkRuleSetData(document.RootElement); + value = NetworkRuleSetData.DeserializeNetworkRuleSetData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EventHubsNetworkRuleSetData)null, message.Response); + return Response.FromValue((NetworkRuleSetData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -649,7 +649,7 @@ public async Task> GetNetworkRuleSetAsync( /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response GetNetworkRuleSet(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) + public Response GetNetworkRuleSet(string subscriptionId, string resourceGroupName, string namespaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -661,13 +661,13 @@ public Response GetNetworkRuleSet(string subscripti { case 200: { - EventHubsNetworkRuleSetData value = default; + NetworkRuleSetData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EventHubsNetworkRuleSetData.DeserializeEventHubsNetworkRuleSetData(document.RootElement); + value = NetworkRuleSetData.DeserializeNetworkRuleSetData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((EventHubsNetworkRuleSetData)null, message.Response); + return Response.FromValue((NetworkRuleSetData)null, message.Response); default: throw new RequestFailedException(message.Response); } 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 027e85ed7dc1..2e5f9bb11411 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public NetworkSecurityPerimeterConfigurationRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 1fd89ce2fce6..e84c09952e5c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs @@ -31,7 +31,7 @@ public NetworkSecurityPerimeterConfigurationsRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 9d2e70e47184..dde5bb011a56 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 6b09aa58a0e7..ca9a0b4ebe07 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-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 6e49d845e032..e78c365ec755 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs @@ -33,7 +33,7 @@ public SchemaRegistryRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01-preview"; + _apiVersion = apiVersion ?? "2024-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -154,6 +154,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } + /// Creates or Updates an EventHub schema group. /// 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. @@ -186,6 +187,7 @@ public async Task> CreateOrUpdateAsync(string } } + /// Creates or Updates an EventHub schema group. /// 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. @@ -240,6 +242,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } + /// Deletes an EventHub schema group. /// 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. @@ -266,6 +269,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } + /// Deletes an EventHub schema group. /// 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. @@ -314,6 +318,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } + /// Gets the details of an EventHub schema group. /// 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. @@ -346,6 +351,7 @@ public async Task> GetAsync(string subscripti } } + /// Gets the details of an EventHub schema group. /// 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. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md index ef2e0587de7e..b88590176882 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true namespace: Azure.ResourceManager.EventHubs output-folder: $(this-folder)/Generated -require: https://github.com/Azure/azure-rest-api-specs/blob/969e0846e56a0869203bcc52773415c71115f59e/specification/eventhub/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md # tag: package-2022-10-preview clear-output-folder: true sample-gen: