Skip to content
Closed
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
Expand Up @@ -4,8 +4,13 @@

### Features Added

- Added support for the `2026-01-01` API version.
- Added `ipAddressType` (IPv4 / DualStack) to the Service Bus namespace.

### Breaking Changes

- Removed `clusterArmId` from the Service Bus namespace replica location (no effect for Service Bus).

### Bugs Fixed

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,58 +216,9 @@ SBNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName,
* @return description of a namespace resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String namespaceName,
Mono<Response<SBNamespaceInner>> updateWithResponseAsync(String resourceGroupName, String namespaceName,
SBNamespaceUpdateParameters parameters);

/**
* Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters supplied to update a namespace resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<SBNamespaceInner>, SBNamespaceInner> beginUpdateAsync(String resourceGroupName,
String namespaceName, SBNamespaceUpdateParameters parameters);

/**
* Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters supplied to update a namespace resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<SBNamespaceInner>, SBNamespaceInner> beginUpdate(String resourceGroupName,
String namespaceName, SBNamespaceUpdateParameters parameters);

/**
* Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters supplied to update a namespace resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<SBNamespaceInner>, SBNamespaceInner> beginUpdate(String resourceGroupName,
String namespaceName, SBNamespaceUpdateParameters parameters, Context context);

/**
* Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
* idempotent.
Expand All @@ -291,13 +242,15 @@ Mono<SBNamespaceInner> updateAsync(String resourceGroupName, String namespaceNam
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters supplied to update a namespace resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a namespace resource.
* @return description of a namespace resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SBNamespaceInner update(String resourceGroupName, String namespaceName, SBNamespaceUpdateParameters parameters);
Response<SBNamespaceInner> updateWithResponse(String resourceGroupName, String namespaceName,
SBNamespaceUpdateParameters parameters, Context context);

/**
* Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is
Expand All @@ -306,15 +259,13 @@ Mono<SBNamespaceInner> updateAsync(String resourceGroupName, String namespaceNam
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param namespaceName The namespace name.
* @param parameters Parameters supplied to update a namespace resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return description of a namespace resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SBNamespaceInner update(String resourceGroupName, String namespaceName, SBNamespaceUpdateParameters parameters,
Context context);
SBNamespaceInner update(String resourceGroupName, String namespaceName, SBNamespaceUpdateParameters parameters);

/**
* Deletes an existing namespace. This operation also removes all associated resources under the namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.azure.resourcemanager.servicebus.models.Encryption;
import com.azure.resourcemanager.servicebus.models.GeoDataReplicationProperties;
import com.azure.resourcemanager.servicebus.models.Identity;
import com.azure.resourcemanager.servicebus.models.IpAddressType;
import com.azure.resourcemanager.servicebus.models.PlatformCapabilities;
import com.azure.resourcemanager.servicebus.models.PublicNetworkAccess;
import com.azure.resourcemanager.servicebus.models.SBSku;
Expand Down Expand Up @@ -465,6 +466,31 @@ public SBNamespaceInner withGeoDataReplication(GeoDataReplicationProperties geoD
return this;
}

/**
* Get the ipAddressType property: The IP address type for the namespace. Determines whether the namespace supports
* IPv4 only or both IPv4 and IPv6 (dual stack).
*
* @return the ipAddressType value.
*/
public IpAddressType ipAddressType() {
return this.innerProperties() == null ? null : this.innerProperties().ipAddressType();
}

/**
* Set the ipAddressType property: The IP address type for the namespace. Determines whether the namespace supports
* IPv4 only or both IPv4 and IPv6 (dual stack).
*
* @param ipAddressType the ipAddressType value to set.
* @return the SBNamespaceInner object itself.
*/
public SBNamespaceInner withIpAddressType(IpAddressType ipAddressType) {
if (this.innerProperties() == null) {
this.innerProperties = new SBNamespaceProperties();
}
this.innerProperties().withIpAddressType(ipAddressType);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.servicebus.models.Encryption;
import com.azure.resourcemanager.servicebus.models.GeoDataReplicationProperties;
import com.azure.resourcemanager.servicebus.models.IpAddressType;
import com.azure.resourcemanager.servicebus.models.PlatformCapabilities;
import com.azure.resourcemanager.servicebus.models.PublicNetworkAccess;
import com.azure.resourcemanager.servicebus.models.TlsVersion;
Expand Down Expand Up @@ -105,6 +106,12 @@ public final class SBNamespaceProperties implements JsonSerializable<SBNamespace
*/
private GeoDataReplicationProperties geoDataReplication;

/*
* The IP address type for the namespace. Determines whether the namespace supports IPv4 only or both IPv4 and IPv6
* (dual stack).
*/
private IpAddressType ipAddressType;

/**
* Creates an instance of SBNamespaceProperties class.
*/
Expand Down Expand Up @@ -372,6 +379,28 @@ public SBNamespaceProperties withGeoDataReplication(GeoDataReplicationProperties
return this;
}

/**
* Get the ipAddressType property: The IP address type for the namespace. Determines whether the namespace supports
* IPv4 only or both IPv4 and IPv6 (dual stack).
*
* @return the ipAddressType value.
*/
public IpAddressType ipAddressType() {
return this.ipAddressType;
}

/**
* Set the ipAddressType property: The IP address type for the namespace. Determines whether the namespace supports
* IPv4 only or both IPv4 and IPv6 (dual stack).
*
* @param ipAddressType the ipAddressType value to set.
* @return the SBNamespaceProperties object itself.
*/
public SBNamespaceProperties withIpAddressType(IpAddressType ipAddressType) {
this.ipAddressType = ipAddressType;
return this;
}

/**
* Validates the instance.
*
Expand Down Expand Up @@ -411,6 +440,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeNumberField("premiumMessagingPartitions", this.premiumMessagingPartitions);
jsonWriter.writeJsonField("platformCapabilities", this.platformCapabilities);
jsonWriter.writeJsonField("geoDataReplication", this.geoDataReplication);
jsonWriter.writeStringField("ipAddressType", this.ipAddressType == null ? null : this.ipAddressType.toString());
return jsonWriter.writeEndObject();
}

Expand Down Expand Up @@ -468,6 +498,8 @@ public static SBNamespaceProperties fromJson(JsonReader jsonReader) throws IOExc
} else if ("geoDataReplication".equals(fieldName)) {
deserializedSBNamespaceProperties.geoDataReplication
= GeoDataReplicationProperties.fromJson(reader);
} else if ("ipAddressType".equals(fieldName)) {
deserializedSBNamespaceProperties.ipAddressType = IpAddressType.fromString(reader.getString());
} else {
reader.skipChildren();
}
Expand Down
Loading