Skip to content

Commit 3a52a51

Browse files
authored
Configurations: 'specification/storagemover/StorageMover.Management/tspconfig.yaml', API Version: 2025-12-01, SDK Release Type: stable, and CommitSHA: '55fc3e7d12df68485d19b10847f24c95579a06f4' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6110797 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. (#48691)
1 parent 40b8980 commit 3a52a51

File tree

54 files changed

+660
-373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+660
-373
lines changed

sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.5.0 (2026-03-17)
3+
## 1.5.0 (2026-04-06)
44

55
- Azure Resource Manager Storage Mover client library for Java. This package contains Microsoft Azure SDK for Storage Mover Management SDK. The Azure Storage Mover REST API. Package api-version 2025-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

@@ -18,6 +18,8 @@
1818

1919
* `models.Connection` was added
2020

21+
* `models.SchedulerTime` was added
22+
2123
* `models.AzureKeyVaultS3WithHmacCredentials` was added
2224

2325
* `models.S3WithHmacEndpointUpdateProperties` was added
@@ -52,8 +54,8 @@
5254

5355
#### `models.EndpointBaseProperties` was modified
5456

55-
* `withEndpointKind(models.EndpointKind)` was added
5657
* `endpointKind()` was added
58+
* `withEndpointKind(models.EndpointKind)` was added
5759

5860
#### `models.AzureStorageNfsFileShareEndpointProperties` was modified
5961

@@ -70,6 +72,8 @@
7072
#### `models.JobDefinitionUpdateParameters` was modified
7173

7274
* `dataIntegrityValidation()` was added
75+
* `schedule()` was added
76+
* `withSchedule(models.ScheduleInfo)` was added
7377
* `withDataIntegrityValidation(models.DataIntegrityValidation)` was added
7478
* `connections()` was added
7579
* `withConnections(java.util.List)` was added
@@ -80,28 +84,29 @@
8084

8185
#### `models.JobDefinition` was modified
8286

83-
* `connections()` was added
8487
* `dataIntegrityValidation()` was added
85-
* `schedule()` was added
8688
* `preservePermissions()` was added
89+
* `schedule()` was added
90+
* `connections()` was added
8791

8892
#### `models.JobDefinition$Update` was modified
8993

9094
* `withDataIntegrityValidation(models.DataIntegrityValidation)` was added
9195
* `withConnections(java.util.List)` was added
96+
* `withSchedule(models.ScheduleInfo)` was added
9297

9398
#### `models.JobRun` was modified
9499

95-
* `warnings()` was added
96100
* `scheduledExecutionTime()` was added
97101
* `triggerType()` was added
102+
* `warnings()` was added
98103

99104
#### `models.JobDefinition$Definition` was modified
100105

101106
* `withDataIntegrityValidation(models.DataIntegrityValidation)` was added
102-
* `withPreservePermissions(java.lang.Boolean)` was added
103107
* `withConnections(java.util.List)` was added
104108
* `withSchedule(models.ScheduleInfo)` was added
109+
* `withPreservePermissions(java.lang.Boolean)` was added
105110

106111
#### `models.EndpointType` was modified
107112

sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ import com.azure.resourcemanager.storagemover.models.Frequency;
796796
import com.azure.resourcemanager.storagemover.models.JobType;
797797
import com.azure.resourcemanager.storagemover.models.Minute;
798798
import com.azure.resourcemanager.storagemover.models.ScheduleInfo;
799-
import com.azure.resourcemanager.storagemover.models.Time;
799+
import com.azure.resourcemanager.storagemover.models.SchedulerTime;
800800
import java.time.OffsetDateTime;
801801
import java.util.Arrays;
802802

@@ -829,7 +829,7 @@ public final class JobDefinitionsCreateOrUpdateSamples {
829829
"/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection"))
830830
.withSchedule(new ScheduleInfo().withFrequency(Frequency.WEEKLY)
831831
.withIsActive(true)
832-
.withExecutionTime(new Time().withHour(9).withMinute(Minute.ZERO))
832+
.withExecutionTime(new SchedulerTime().withHour(9).withMinute(Minute.ZERO))
833833
.withStartDate(OffsetDateTime.parse("2025-12-01T00:00:00Z"))
834834
.withDaysOfWeek(Arrays.asList("Monday", "Wednesday", "Friday"))
835835
.withEndDate(OffsetDateTime.parse("2025-12-31T12:00:00Z")))

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.azure.json.JsonWriter;
1212
import com.azure.resourcemanager.storagemover.models.CopyMode;
1313
import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation;
14+
import com.azure.resourcemanager.storagemover.models.ScheduleInfo;
1415
import java.io.IOException;
1516
import java.util.List;
1617

@@ -44,6 +45,11 @@ public final class JobDefinitionUpdateProperties implements JsonSerializable<Job
4445
*/
4546
private DataIntegrityValidation dataIntegrityValidation;
4647

48+
/*
49+
* Schedule information for the Job Definition.
50+
*/
51+
private ScheduleInfo schedule;
52+
4753
/**
4854
* Creates an instance of JobDefinitionUpdateProperties class.
4955
*/
@@ -150,6 +156,26 @@ public JobDefinitionUpdateProperties withDataIntegrityValidation(DataIntegrityVa
150156
return this;
151157
}
152158

159+
/**
160+
* Get the schedule property: Schedule information for the Job Definition.
161+
*
162+
* @return the schedule value.
163+
*/
164+
public ScheduleInfo schedule() {
165+
return this.schedule;
166+
}
167+
168+
/**
169+
* Set the schedule property: Schedule information for the Job Definition.
170+
*
171+
* @param schedule the schedule value to set.
172+
* @return the JobDefinitionUpdateProperties object itself.
173+
*/
174+
public JobDefinitionUpdateProperties withSchedule(ScheduleInfo schedule) {
175+
this.schedule = schedule;
176+
return this;
177+
}
178+
153179
/**
154180
* {@inheritDoc}
155181
*/
@@ -162,6 +188,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
162188
jsonWriter.writeArrayField("connections", this.connections, (writer, element) -> writer.writeString(element));
163189
jsonWriter.writeStringField("dataIntegrityValidation",
164190
this.dataIntegrityValidation == null ? null : this.dataIntegrityValidation.toString());
191+
jsonWriter.writeJsonField("schedule", this.schedule);
165192
return jsonWriter.writeEndObject();
166193
}
167194

@@ -193,6 +220,8 @@ public static JobDefinitionUpdateProperties fromJson(JsonReader jsonReader) thro
193220
} else if ("dataIntegrityValidation".equals(fieldName)) {
194221
deserializedJobDefinitionUpdateProperties.dataIntegrityValidation
195222
= DataIntegrityValidation.fromString(reader.getString());
223+
} else if ("schedule".equals(fieldName)) {
224+
deserializedJobDefinitionUpdateProperties.schedule = ScheduleInfo.fromJson(reader);
196225
} else {
197226
reader.skipChildren();
198227
}

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,13 @@ public JobDefinitionImpl withConnections(List<String> connections) {
321321
}
322322

323323
public JobDefinitionImpl withSchedule(ScheduleInfo schedule) {
324-
this.innerModel().withSchedule(schedule);
325-
return this;
324+
if (isInCreateMode()) {
325+
this.innerModel().withSchedule(schedule);
326+
return this;
327+
} else {
328+
this.updateJobDefinition.withSchedule(schedule);
329+
return this;
330+
}
326331
}
327332

328333
public JobDefinitionImpl withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation) {

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public final class Frequency extends ExpandableStringEnum<Frequency> {
3131
*/
3232
public static final Frequency ONETIME = fromString("Onetime");
3333

34+
/**
35+
* No schedule frequency. The job definition will not run on a schedule.
36+
*/
37+
public static final Frequency NONE = fromString("None");
38+
3439
/**
3540
* Creates a new instance of Frequency value.
3641
*

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ interface WithPreservePermissions {
439439
* The template for JobDefinition update.
440440
*/
441441
interface Update extends UpdateStages.WithDescription, UpdateStages.WithCopyMode, UpdateStages.WithAgentName,
442-
UpdateStages.WithConnections, UpdateStages.WithDataIntegrityValidation {
442+
UpdateStages.WithConnections, UpdateStages.WithDataIntegrityValidation, UpdateStages.WithSchedule {
443443
/**
444444
* Executes the update request.
445445
*
@@ -524,6 +524,19 @@ interface WithDataIntegrityValidation {
524524
*/
525525
Update withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation);
526526
}
527+
528+
/**
529+
* The stage of the JobDefinition update allowing to specify schedule.
530+
*/
531+
interface WithSchedule {
532+
/**
533+
* Specifies the schedule property: Schedule information for the Job Definition..
534+
*
535+
* @param schedule Schedule information for the Job Definition.
536+
* @return the next definition stage.
537+
*/
538+
Update withSchedule(ScheduleInfo schedule);
539+
}
527540
}
528541

529542
/**

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,29 @@ public JobDefinitionUpdateParameters withDataIntegrityValidation(DataIntegrityVa
153153
return this;
154154
}
155155

156+
/**
157+
* Get the schedule property: Schedule information for the Job Definition.
158+
*
159+
* @return the schedule value.
160+
*/
161+
public ScheduleInfo schedule() {
162+
return this.innerProperties() == null ? null : this.innerProperties().schedule();
163+
}
164+
165+
/**
166+
* Set the schedule property: Schedule information for the Job Definition.
167+
*
168+
* @param schedule the schedule value to set.
169+
* @return the JobDefinitionUpdateParameters object itself.
170+
*/
171+
public JobDefinitionUpdateParameters withSchedule(ScheduleInfo schedule) {
172+
if (this.innerProperties() == null) {
173+
this.innerProperties = new JobDefinitionUpdateProperties();
174+
}
175+
this.innerProperties().withSchedule(schedule);
176+
return this;
177+
}
178+
156179
/**
157180
* {@inheritDoc}
158181
*/

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,29 @@ public final class S3WithHmacSourceType extends ExpandableStringEnum<S3WithHmacS
1717
public static final S3WithHmacSourceType MINIO = fromString("MINIO");
1818

1919
/**
20-
* Static value BACKBLAZE for S3WithHmacSourceType.
20+
* Static value IBM for S3WithHmacSourceType.
2121
*/
22-
public static final S3WithHmacSourceType BACKBLAZE = fromString("BACKBLAZE");
22+
public static final S3WithHmacSourceType IBM = fromString("IBM");
2323

2424
/**
25-
* Static value IBM for S3WithHmacSourceType.
25+
* Static value GCS for S3WithHmacSourceType.
2626
*/
27-
public static final S3WithHmacSourceType IBM = fromString("IBM");
27+
public static final S3WithHmacSourceType GCS = fromString("GCS");
2828

2929
/**
30-
* Static value CLOUDFLARE for S3WithHmacSourceType.
30+
* Static value ALIBABA for S3WithHmacSourceType.
3131
*/
32-
public static final S3WithHmacSourceType CLOUDFLARE = fromString("CLOUDFLARE");
32+
public static final S3WithHmacSourceType ALIBABA = fromString("ALIBABA");
3333

3434
/**
35-
* Static value GCS for S3WithHmacSourceType.
35+
* Static value DELL_EMC for S3WithHmacSourceType.
3636
*/
37-
public static final S3WithHmacSourceType GCS = fromString("GCS");
37+
public static final S3WithHmacSourceType DELL_EMC = fromString("DELL_EMC");
38+
39+
/**
40+
* Static value OTHER for S3WithHmacSourceType.
41+
*/
42+
public static final S3WithHmacSourceType OTHER = fromString("OTHER");
3843

3944
/**
4045
* Creates a new instance of S3WithHmacSourceType value.

sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public final class ScheduleInfo implements JsonSerializable<ScheduleInfo> {
2828
/*
2929
* Whether the schedule is currently active
3030
*/
31-
private boolean isActive;
31+
private Boolean isActive;
3232

3333
/*
3434
* Time of day to execute (hours and minutes)
3535
*/
36-
private Time executionTime;
36+
private SchedulerTime executionTime;
3737

3838
/*
3939
* Specific one-time execution date and time
@@ -91,7 +91,7 @@ public ScheduleInfo withFrequency(Frequency frequency) {
9191
*
9292
* @return the isActive value.
9393
*/
94-
public boolean isActive() {
94+
public Boolean isActive() {
9595
return this.isActive;
9696
}
9797

@@ -101,7 +101,7 @@ public boolean isActive() {
101101
* @param isActive the isActive value to set.
102102
* @return the ScheduleInfo object itself.
103103
*/
104-
public ScheduleInfo withIsActive(boolean isActive) {
104+
public ScheduleInfo withIsActive(Boolean isActive) {
105105
this.isActive = isActive;
106106
return this;
107107
}
@@ -111,7 +111,7 @@ public ScheduleInfo withIsActive(boolean isActive) {
111111
*
112112
* @return the executionTime value.
113113
*/
114-
public Time executionTime() {
114+
public SchedulerTime executionTime() {
115115
return this.executionTime;
116116
}
117117

@@ -121,7 +121,7 @@ public Time executionTime() {
121121
* @param executionTime the executionTime value to set.
122122
* @return the ScheduleInfo object itself.
123123
*/
124-
public ScheduleInfo withExecutionTime(Time executionTime) {
124+
public ScheduleInfo withExecutionTime(SchedulerTime executionTime) {
125125
this.executionTime = executionTime;
126126
return this;
127127
}
@@ -251,7 +251,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
251251
* @param jsonReader The JsonReader being read.
252252
* @return An instance of ScheduleInfo if the JsonReader was pointing to an instance of it, or null if it was
253253
* pointing to JSON null.
254-
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
255254
* @throws IOException If an error occurs while reading the ScheduleInfo.
256255
*/
257256
public static ScheduleInfo fromJson(JsonReader jsonReader) throws IOException {
@@ -264,9 +263,9 @@ public static ScheduleInfo fromJson(JsonReader jsonReader) throws IOException {
264263
if ("frequency".equals(fieldName)) {
265264
deserializedScheduleInfo.frequency = Frequency.fromString(reader.getString());
266265
} else if ("isActive".equals(fieldName)) {
267-
deserializedScheduleInfo.isActive = reader.getBoolean();
266+
deserializedScheduleInfo.isActive = reader.getNullable(JsonReader::getBoolean);
268267
} else if ("executionTime".equals(fieldName)) {
269-
deserializedScheduleInfo.executionTime = Time.fromJson(reader);
268+
deserializedScheduleInfo.executionTime = SchedulerTime.fromJson(reader);
270269
} else if ("startDate".equals(fieldName)) {
271270
deserializedScheduleInfo.startDate = reader
272271
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));

0 commit comments

Comments
 (0)