Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# Release History

## 1.2.0-beta.1 (Unreleased)
## 1.2.0-beta.1 (2025-11-27)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
Updated api version to '2025-05-01-preview'.

## 1.1.0 (2024-11-30)

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/servicebus/Azure.ResourceManager.ServiceBus",
"Tag": "net/servicebus/Azure.ResourceManager.ServiceBus_2c34644109"
"Tag": "net/servicebus/Azure.ResourceManager.ServiceBus_3fb5a77795"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;

namespace Azure.ResourceManager.ServiceBus.Models
{
public static partial class ArmServiceBusModelFactory
{
/// <summary> Initializes a new instance of <see cref="ServiceBus.MigrationConfigurationData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="provisioningState"> Provisioning state of Migration Configuration. </param>
/// <param name="pendingReplicationOperationsCount"> Number of entities pending to be replicated. </param>
/// <param name="targetServiceBusNamespace"> Existing premium Namespace ARM Id name which has no entities, will be used for migration. </param>
/// <param name="postMigrationName"> Name to access Standard Namespace after migration. </param>
/// <param name="migrationState"> State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <returns> A new <see cref="ServiceBus.MigrationConfigurationData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static MigrationConfigurationData MigrationConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string provisioningState = null, long? pendingReplicationOperationsCount = null, ResourceIdentifier targetServiceBusNamespace = null, string postMigrationName = null, string migrationState = null, AzureLocation? location = null)
{
return new MigrationConfigurationData(
id,
name,
resourceType,
systemData,
provisioningState,
location,
pendingReplicationOperationsCount,
targetServiceBusNamespace,
postMigrationName,
migrationState,
serializedAdditionalRawData: null);
}

/// <summary> Initializes a new instance of <see cref="ServiceBus.ServiceBusAuthorizationRuleData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <param name="rights"> The rights associated with the rule. </param>
/// <returns> A new <see cref="ServiceBus.ServiceBusAuthorizationRuleData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static ServiceBusAuthorizationRuleData ServiceBusAuthorizationRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable<ServiceBusAccessRight> rights = null, AzureLocation? location = null)
{
rights ??= new List<ServiceBusAccessRight>();

return new ServiceBusAuthorizationRuleData(
id,
name,
resourceType,
systemData,
location,
rights?.ToList(),
serializedAdditionalRawData: null);
}

/// <summary> Initializes a new instance of <see cref="ServiceBus.ServiceBusDisasterRecoveryData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="provisioningState"> Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. </param>
/// <param name="pendingReplicationOperationsCount"> Number of entities pending to be replicated. </param>
/// <param name="partnerNamespace"> ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing. </param>
/// <param name="alternateName"> Primary/Secondary eventhub namespace name, which is part of GEO DR pairing. </param>
/// <param name="role"> role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <returns> A new <see cref="ServiceBus.ServiceBusDisasterRecoveryData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static ServiceBusDisasterRecoveryData ServiceBusDisasterRecoveryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ServiceBusDisasterRecoveryProvisioningState? provisioningState = null, long? pendingReplicationOperationsCount = null, string partnerNamespace = null, string alternateName = null, ServiceBusDisasterRecoveryRole? role = null, AzureLocation? location = null)
{
return new ServiceBusDisasterRecoveryData(
id,
name,
resourceType,
systemData,
location,
provisioningState,
pendingReplicationOperationsCount,
partnerNamespace,
alternateName,
role,
serializedAdditionalRawData: null);
}

/// <summary> Initializes a new instance of <see cref="ServiceBus.ServiceBusNetworkRuleSetData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="isTrustedServiceAccessEnabled"> Value that indicates whether Trusted Service Access is Enabled or not. </param>
/// <param name="defaultAction"> Default Action for Network Rule Set. </param>
/// <param name="virtualNetworkRules"> List VirtualNetwork Rules. </param>
/// <param name="ipRules"> List of IpRules. </param>
/// <param name="publicNetworkAccess"> This determines if traffic is allowed over public network. By default it is enabled. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <returns> A new <see cref="ServiceBus.ServiceBusNetworkRuleSetData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static ServiceBusNetworkRuleSetData ServiceBusNetworkRuleSetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isTrustedServiceAccessEnabled = null, ServiceBusNetworkRuleSetDefaultAction? defaultAction = null, IEnumerable<ServiceBusNetworkRuleSetVirtualNetworkRules> virtualNetworkRules = null, IEnumerable<ServiceBusNetworkRuleSetIPRules> ipRules = null, ServiceBusPublicNetworkAccessFlag? publicNetworkAccess = null, AzureLocation? location = null)
{
virtualNetworkRules ??= new List<ServiceBusNetworkRuleSetVirtualNetworkRules>();
ipRules ??= new List<ServiceBusNetworkRuleSetIPRules>();

return new ServiceBusNetworkRuleSetData(
id,
name,
resourceType,
systemData,
location,
isTrustedServiceAccessEnabled,
defaultAction,
virtualNetworkRules?.ToList(),
ipRules?.ToList(),
publicNetworkAccess,
serializedAdditionalRawData: null);
}

/// <summary> Initializes a new instance of <see cref="ServiceBus.ServiceBusPrivateEndpointConnectionData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="privateEndpointId"> The Private Endpoint resource for this Connection. </param>
/// <param name="connectionState"> Details about the state of the connection. </param>
/// <param name="provisioningState"> Provisioning state of the Private Endpoint Connection. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <returns> A new <see cref="ServiceBus.ServiceBusPrivateEndpointConnectionData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static ServiceBusPrivateEndpointConnectionData ServiceBusPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, ServiceBusPrivateLinkServiceConnectionState connectionState = null, ServiceBusPrivateEndpointConnectionProvisioningState? provisioningState = null, AzureLocation? location = null)
{
return new ServiceBusPrivateEndpointConnectionData(
id,
name,
resourceType,
systemData,
location,
privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null,
connectionState,
provisioningState,
serializedAdditionalRawData: null);
}

/// <summary> Initializes a new instance of <see cref="ServiceBus.ServiceBusRuleData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="action"> Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter expression. </param>
/// <param name="filterType"> Filter type that is evaluated against a BrokeredMessage. </param>
/// <param name="sqlFilter"> Properties of sqlFilter. </param>
/// <param name="correlationFilter"> Properties of correlationFilter. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <returns> A new <see cref="ServiceBus.ServiceBusRuleData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static ServiceBusRuleData ServiceBusRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ServiceBusFilterAction action = null, ServiceBusFilterType? filterType = null, ServiceBusSqlFilter sqlFilter = null, ServiceBusCorrelationFilter correlationFilter = null, AzureLocation? location = null)
{
return new ServiceBusRuleData(
id,
name,
resourceType,
systemData,
location,
action,
filterType,
sqlFilter,
correlationFilter,
serializedAdditionalRawData: null);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
using Azure.Core;
using Azure.ResourceManager.Resources;

namespace Azure.ResourceManager.ServiceBus
{
/// <summary>
/// A Class representing an ServiceBusNamespace along with the instance operations that can be performed on it.
/// If you have a <see cref="ResourceIdentifier"/> you can construct an <see cref="ServiceBusNamespaceResource"/>
/// from an instance of <see cref="ArmClient"/> using the GetServiceBusNamespaceResource method.
/// Otherwise you can get one from its parent resource <see cref="ResourceGroupResource"/> using the GetServiceBusNamespace method.
/// </summary>
public partial class ServiceBusNamespaceResource : ArmResource
{
/// <summary>
/// Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Namespaces_Update</description>
/// </item>
/// <item>
/// <term>Resource</term>
/// <description><see cref="ServiceBusNamespaceResource"/></description>
/// </item>
/// </list>
/// </summary>
/// <param name="patch"> Parameters for updating a namespace resource. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentNullException"> <paramref name="patch"/> is null. </exception>
[Obsolete("This method is obsolete and will be removed in a future release.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Task<Response<ServiceBusNamespaceResource>> UpdateAsync(Azure.ResourceManager.ServiceBus.Models.ServiceBusNamespacePatch patch, CancellationToken cancellationToken = default)
{
throw new NotSupportedException("This method is no longer supported.");
}

/// <summary>
/// Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
/// <list type="bullet">
/// <item>
/// <term>Request Path</term>
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}</description>
/// </item>
/// <item>
/// <term>Operation Id</term>
/// <description>Namespaces_Update</description>
/// </item>
/// <item>
/// <term>Default Api Version</term>
/// <description>2024-01-01</description>
/// </item>
/// <item>
/// <term>Resource</term>
/// <description><see cref="ServiceBusNamespaceResource"/></description>
/// </item>
/// </list>
/// </summary>
/// <param name="patch"> Parameters for updating a namespace resource. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentNullException"> <paramref name="patch"/> is null. </exception>
[Obsolete("This method is obsolete and will be removed in a future release.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Response<ServiceBusNamespaceResource> Update(Azure.ResourceManager.ServiceBus.Models.ServiceBusNamespacePatch patch, CancellationToken cancellationToken = default)
{
throw new NotSupportedException("This method is no longer supported.");
}
}
}
Loading