Skip to content
Merged
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
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ com.azure.resourcemanager:azure-resourcemanager-pineconevectordb;1.0.0-beta.2;1.
com.azure.resourcemanager:azure-resourcemanager-impactreporting;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-migration-assessment;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-databasewatcher;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-durabletask;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-durabletask;1.0.0-beta.2;1.0.0
com.azure.resourcemanager:azure-resourcemanager-arizeaiobservabilityeval;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-weightsandbiases;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-carbonoptimization;1.0.0;1.1.0-beta.1
Expand Down
56 changes: 52 additions & 4 deletions sdk/durabletask/azure-resourcemanager-durabletask/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,62 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0 (2025-09-25)

### Features Added
- Azure Resource Manager Durable Task client library for Java. This package contains Microsoft Azure SDK for Durable Task Management SDK. Package api-version 2025-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.SchedulerSku` was modified

* `validate()` was removed
* `java.lang.String name()` -> `models.SchedulerSkuName name()`
* `withName(java.lang.String)` was removed

#### `models.RetentionPolicyDetails` was modified

* `validate()` was removed

#### `models.SchedulerPropertiesUpdate` was modified

* `validate()` was removed

#### `models.RetentionPolicyProperties` was modified

* `validate()` was removed

#### `models.SchedulerProperties` was modified

* `validate()` was removed

#### `models.TaskHubProperties` was modified

* `validate()` was removed

#### `models.OperationDisplay` was modified

* `validate()` was removed

#### `models.SchedulerSkuUpdate` was modified

* `validate()` was removed
* `withName(java.lang.String)` was removed
* `java.lang.String name()` -> `models.SchedulerSkuName name()`

#### `models.SchedulerUpdate` was modified

* `validate()` was removed

### Features Added

* `models.SchedulerSkuName` was added

#### `models.SchedulerSku` was modified

* `withName(models.SchedulerSkuName)` was added

#### `models.SchedulerSkuUpdate` was modified

### Other Changes
* `withName(models.SchedulerSkuName)` was added

## 1.0.0-beta.2 (2025-04-24)

Expand Down
4 changes: 2 additions & 2 deletions sdk/durabletask/azure-resourcemanager-durabletask/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Durable Task client library for Java.

This package contains Microsoft Azure SDK for Durable Task Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Durable Task Management SDK. Package api-version 2025-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-durabletask</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
38 changes: 20 additions & 18 deletions sdk/durabletask/azure-resourcemanager-durabletask/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public final class OperationsListSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Operations_List.json
* x-ms-original-file: 2025-11-01/Operations_List.json
*/
/**
* Sample code: Operations_List.
Expand All @@ -63,7 +63,7 @@ import java.util.Arrays;
*/
public final class RetentionPoliciesCreateOrReplaceSamples {
/*
* x-ms-original-file: 2025-04-01-preview/RetentionPolicies_CreateOrReplace_MaximumSet_Gen.json
* x-ms-original-file: 2025-11-01/RetentionPolicies_CreateOrReplace_MaximumSet_Gen.json
*/
/**
* Sample code: RetentionPolicies_CreateOrReplace_MaximumSet.
Expand Down Expand Up @@ -91,7 +91,7 @@ public final class RetentionPoliciesCreateOrReplaceSamples {
*/
public final class RetentionPoliciesDeleteSamples {
/*
* x-ms-original-file: 2025-04-01-preview/RetentionPolicies_Delete_MaximumSet_Gen.json
* x-ms-original-file: 2025-11-01/RetentionPolicies_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: RetentionPolicies_Delete_MaximumSet.
Expand All @@ -113,7 +113,7 @@ public final class RetentionPoliciesDeleteSamples {
*/
public final class RetentionPoliciesGetSamples {
/*
* x-ms-original-file: 2025-04-01-preview/RetentionPolicies_Get_MaximumSet_Gen.json
* x-ms-original-file: 2025-11-01/RetentionPolicies_Get_MaximumSet_Gen.json
*/
/**
* Sample code: RetentionPolicies_Get_MaximumSet.
Expand All @@ -135,7 +135,7 @@ public final class RetentionPoliciesGetSamples {
*/
public final class RetentionPoliciesListBySchedulerSamples {
/*
* x-ms-original-file: 2025-04-01-preview/RetentionPolicies_ListByScheduler_MaximumSet_Gen.json
* x-ms-original-file: 2025-11-01/RetentionPolicies_ListByScheduler_MaximumSet_Gen.json
*/
/**
* Sample code: RetentionPolicies_ListByScheduler_MaximumSet.
Expand Down Expand Up @@ -163,7 +163,7 @@ import java.util.Arrays;
*/
public final class RetentionPoliciesUpdateSamples {
/*
* x-ms-original-file: 2025-04-01-preview/RetentionPolicies_Update_MaximumSet_Gen.json
* x-ms-original-file: 2025-11-01/RetentionPolicies_Update_MaximumSet_Gen.json
*/
/**
* Sample code: RetentionPolicies_Update_MaximumSet.
Expand All @@ -190,6 +190,7 @@ public final class RetentionPoliciesUpdateSamples {
```java
import com.azure.resourcemanager.durabletask.models.SchedulerProperties;
import com.azure.resourcemanager.durabletask.models.SchedulerSku;
import com.azure.resourcemanager.durabletask.models.SchedulerSkuName;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -199,7 +200,7 @@ import java.util.Map;
*/
public final class SchedulersCreateOrUpdateSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Schedulers_CreateOrUpdate.json
* x-ms-original-file: 2025-11-01/Schedulers_CreateOrUpdate.json
*/
/**
* Sample code: Schedulers_CreateOrUpdate.
Expand All @@ -213,7 +214,7 @@ public final class SchedulersCreateOrUpdateSamples {
.withExistingResourceGroup("rgopenapi")
.withTags(mapOf("department", "research", "development", "true"))
.withProperties(new SchedulerProperties().withIpAllowlist(Arrays.asList("10.0.0.0/8"))
.withSku(new SchedulerSku().withName("Dedicated")))
.withSku(new SchedulerSku().withName(SchedulerSkuName.DEDICATED)))
.create();
}

Expand All @@ -239,7 +240,7 @@ public final class SchedulersCreateOrUpdateSamples {
*/
public final class SchedulersDeleteSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Schedulers_Delete.json
* x-ms-original-file: 2025-11-01/Schedulers_Delete.json
*/
/**
* Sample code: Schedulers_Delete.
Expand All @@ -260,7 +261,7 @@ public final class SchedulersDeleteSamples {
*/
public final class SchedulersGetByResourceGroupSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Schedulers_Get.json
* x-ms-original-file: 2025-11-01/Schedulers_Get.json
*/
/**
* Sample code: Schedulers_Get.
Expand All @@ -282,7 +283,7 @@ public final class SchedulersGetByResourceGroupSamples {
*/
public final class SchedulersListSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Schedulers_ListBySubscription.json
* x-ms-original-file: 2025-11-01/Schedulers_ListBySubscription.json
*/
/**
* Sample code: Schedulers_ListBySubscription.
Expand All @@ -303,7 +304,7 @@ public final class SchedulersListSamples {
*/
public final class SchedulersListByResourceGroupSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Schedulers_ListByResourceGroup.json
* x-ms-original-file: 2025-11-01/Schedulers_ListByResourceGroup.json
*/
/**
* Sample code: Schedulers_ListByResourceGroup.
Expand All @@ -321,6 +322,7 @@ public final class SchedulersListByResourceGroupSamples {
```java
import com.azure.resourcemanager.durabletask.models.Scheduler;
import com.azure.resourcemanager.durabletask.models.SchedulerPropertiesUpdate;
import com.azure.resourcemanager.durabletask.models.SchedulerSkuName;
import com.azure.resourcemanager.durabletask.models.SchedulerSkuUpdate;
import java.util.Arrays;
import java.util.HashMap;
Expand All @@ -331,7 +333,7 @@ import java.util.Map;
*/
public final class SchedulersUpdateSamples {
/*
* x-ms-original-file: 2025-04-01-preview/Schedulers_Update.json
* x-ms-original-file: 2025-11-01/Schedulers_Update.json
*/
/**
* Sample code: Schedulers_Update.
Expand All @@ -345,7 +347,7 @@ public final class SchedulersUpdateSamples {
resource.update()
.withTags(mapOf("hello", "world"))
.withProperties(new SchedulerPropertiesUpdate().withIpAllowlist(Arrays.asList("10.0.0.0/8"))
.withSku(new SchedulerSkuUpdate().withName("Dedicated").withCapacity(3)))
.withSku(new SchedulerSkuUpdate().withName(SchedulerSkuName.DEDICATED).withCapacity(3)))
.apply();
}

Expand Down Expand Up @@ -373,7 +375,7 @@ import com.azure.resourcemanager.durabletask.models.TaskHubProperties;
*/
public final class TaskHubsCreateOrUpdateSamples {
/*
* x-ms-original-file: 2025-04-01-preview/TaskHubs_CreateOrUpdate.json
* x-ms-original-file: 2025-11-01/TaskHubs_CreateOrUpdate.json
*/
/**
* Sample code: TaskHubs_CreateOrUpdate.
Expand All @@ -398,7 +400,7 @@ public final class TaskHubsCreateOrUpdateSamples {
*/
public final class TaskHubsDeleteSamples {
/*
* x-ms-original-file: 2025-04-01-preview/TaskHubs_Delete.json
* x-ms-original-file: 2025-11-01/TaskHubs_Delete.json
*/
/**
* Sample code: TaskHubs_Delete.
Expand All @@ -419,7 +421,7 @@ public final class TaskHubsDeleteSamples {
*/
public final class TaskHubsGetSamples {
/*
* x-ms-original-file: 2025-04-01-preview/TaskHubs_Get.json
* x-ms-original-file: 2025-11-01/TaskHubs_Get.json
*/
/**
* Sample code: TaskHubs_Get.
Expand All @@ -441,7 +443,7 @@ public final class TaskHubsGetSamples {
*/
public final class TaskHubsListBySchedulerSamples {
/*
* x-ms-original-file: 2025-04-01-preview/TaskHubs_ListByScheduler.json
* x-ms-original-file: 2025-11-01/TaskHubs_ListByScheduler.json
*/
/**
* Sample code: TaskHubs_ListByScheduler.
Expand Down
5 changes: 2 additions & 3 deletions sdk/durabletask/azure-resourcemanager-durabletask/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-durabletask</artifactId>
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-durabletask;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-durabletask;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Durable Task Management</name>
<description>This package contains Microsoft Azure SDK for Durable Task Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt.</description>
<description>This package contains Microsoft Azure SDK for Durable Task Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2025-11-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,7 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public RetentionPoliciesClient getRetentionPolicies() {
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
this.apiVersion = "2025-04-01-preview";
this.apiVersion = "2025-11-01";
this.operations = new OperationsClientImpl(this);
this.schedulers = new SchedulersClientImpl(this);
this.taskHubs = new TaskHubsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public final class SchedulerSku implements JsonSerializable<SchedulerSku> {
/*
* The name of the SKU
*/
private String name;
private SchedulerSkuName name;

/*
* The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy
Expand All @@ -42,7 +42,7 @@ public SchedulerSku() {
*
* @return the name value.
*/
public String name() {
public SchedulerSkuName name() {
return this.name;
}

Expand All @@ -52,7 +52,7 @@ public String name() {
* @param name the name value to set.
* @return the SchedulerSku object itself.
*/
public SchedulerSku withName(String name) {
public SchedulerSku withName(SchedulerSkuName name) {
this.name = name;
return this;
}
Expand Down Expand Up @@ -94,7 +94,7 @@ public RedundancyState redundancyState() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("name", this.name);
jsonWriter.writeStringField("name", this.name == null ? null : this.name.toString());
jsonWriter.writeNumberField("capacity", this.capacity);
return jsonWriter.writeEndObject();
}
Expand All @@ -116,7 +116,7 @@ public static SchedulerSku fromJson(JsonReader jsonReader) throws IOException {
reader.nextToken();

if ("name".equals(fieldName)) {
deserializedSchedulerSku.name = reader.getString();
deserializedSchedulerSku.name = SchedulerSkuName.fromString(reader.getString());
} else if ("capacity".equals(fieldName)) {
deserializedSchedulerSku.capacity = reader.getNullable(JsonReader::getInt);
} else if ("redundancyState".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.durabletask.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/**
* The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler.
*/
public final class SchedulerSkuName extends ExpandableStringEnum<SchedulerSkuName> {
/**
* Dedicated SKU.
*/
public static final SchedulerSkuName DEDICATED = fromString("Dedicated");

/**
* Consumption SKU.
*/
public static final SchedulerSkuName CONSUMPTION = fromString("Consumption");

/**
* Creates a new instance of SchedulerSkuName value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public SchedulerSkuName() {
}

/**
* Creates or finds a SchedulerSkuName from its string representation.
*
* @param name a name to look for.
* @return the corresponding SchedulerSkuName.
*/
public static SchedulerSkuName fromString(String name) {
return fromString(name, SchedulerSkuName.class);
}

/**
* Gets known SchedulerSkuName values.
*
* @return known SchedulerSkuName values.
*/
public static Collection<SchedulerSkuName> values() {
return values(SchedulerSkuName.class);
}
}
Loading