Skip to content

Commit 2a91153

Browse files
Merge branch 'main' into fix/servicebus-batch-size-cap-ICM51000000793879
2 parents 00e7dff + 89b8f6d commit 2a91153

385 files changed

Lines changed: 5736 additions & 9701 deletions

File tree

Some content is hidden

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

eng/versioning/version_client.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ com.azure.resourcemanager:azure-resourcemanager-netapp;2.2.0;2.3.0-beta.1
320320
com.azure.resourcemanager:azure-resourcemanager-storagecache;1.2.0;1.3.0-beta.1
321321
com.azure.resourcemanager:azure-resourcemanager-redisenterprise;2.1.0;2.2.0-beta.1
322322
com.azure.resourcemanager:azure-resourcemanager-hybridkubernetes;1.0.0;1.1.0-beta.2
323-
com.azure.resourcemanager:azure-resourcemanager-iothub;1.3.0;1.4.0-beta.2
323+
com.azure.resourcemanager:azure-resourcemanager-iothub;1.3.0;1.4.0-beta.3
324324
com.azure.resourcemanager:azure-resourcemanager-datadog;1.1.0;1.2.0-beta.1
325325
com.azure.resourcemanager:azure-resourcemanager-communication;2.3.0;2.4.0-beta.1
326326
com.azure.resourcemanager:azure-resourcemanager-apimanagement;2.0.0;2.1.0-beta.1
@@ -466,7 +466,7 @@ com.azure.resourcemanager:azure-resourcemanager-migrationdiscoverysap;1.0.0-beta
466466
com.azure.resourcemanager:azure-resourcemanager-storageactions;1.0.0;1.1.0-beta.1
467467
com.azure.resourcemanager:azure-resourcemanager-deviceregistry;1.1.0;1.2.0-beta.2
468468
com.azure.resourcemanager:azure-resourcemanager-standbypool;1.1.0;1.2.0
469-
com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.2;1.0.0-beta.3
469+
com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.3;1.0.0-beta.4
470470
com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0;1.1.0-beta.1
471471
com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.2.0;1.3.0-beta.1
472472
com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0;1.1.0-beta.1

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

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

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.4 (Unreleased)
44

55
### Features Added
66

@@ -10,6 +10,30 @@
1010

1111
### Other Changes
1212

13+
## 1.0.0-beta.3 (2026-05-08)
14+
15+
- Azure Resource Manager Edge Zones client library for Java. This package contains Microsoft Azure SDK for Edge Zones Management SDK. Package api-version 2024-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
16+
17+
### Breaking Changes
18+
19+
#### `models.ExtendedZoneListResult` was removed
20+
21+
#### `models.OperationListResult` was removed
22+
23+
#### `EdgeZonesManager` was modified
24+
25+
* `fluent.MicrosoftEdgeZones serviceClient()` -> `fluent.EdgeZonesManagementClient serviceClient()`
26+
27+
#### `models.OperationDisplay` was modified
28+
29+
* `OperationDisplay()` was changed to private access
30+
* `validate()` was removed
31+
32+
#### `models.ExtendedZoneProperties` was modified
33+
34+
* `ExtendedZoneProperties()` was changed to private access
35+
* `validate()` was removed
36+
1337
## 1.0.0-beta.2 (2024-12-04)
1438

1539
- Azure Resource Manager Edge Zones client library for Java. This package contains Microsoft Azure SDK for Edge Zones Management SDK. Package tag package-2024-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

sdk/edgezones/azure-resourcemanager-edgezones/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Edge Zones client library for Java.
44

5-
This package contains Microsoft Azure SDK for Edge Zones Management SDK. Package tag package-2024-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for Edge Zones Management SDK. Package api-version 2024-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
EdgeZonesManager manager = EdgeZonesManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

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

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
*/
2020
public final class ExtendedZonesGetSamples {
2121
/*
22-
* x-ms-original-file:
23-
* specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/
24-
* ExtendedZones_Get.json
22+
* x-ms-original-file: 2024-04-01-preview/ExtendedZones_Get.json
2523
*/
2624
/**
2725
* Sample code: GetExtendedZone.
@@ -42,9 +40,7 @@ public final class ExtendedZonesGetSamples {
4240
*/
4341
public final class ExtendedZonesListSamples {
4442
/*
45-
* x-ms-original-file:
46-
* specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/
47-
* ExtendedZones_ListBySubscription.json
43+
* x-ms-original-file: 2024-04-01-preview/ExtendedZones_ListBySubscription.json
4844
*/
4945
/**
5046
* Sample code: ListExtendedZones.
@@ -65,9 +61,7 @@ public final class ExtendedZonesListSamples {
6561
*/
6662
public final class ExtendedZonesRegisterSamples {
6763
/*
68-
* x-ms-original-file:
69-
* specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/
70-
* ExtendedZones_Register.json
64+
* x-ms-original-file: 2024-04-01-preview/ExtendedZones_Register.json
7165
*/
7266
/**
7367
* Sample code: RegisterExtendedZone.
@@ -88,9 +82,7 @@ public final class ExtendedZonesRegisterSamples {
8882
*/
8983
public final class ExtendedZonesUnregisterSamples {
9084
/*
91-
* x-ms-original-file:
92-
* specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/
93-
* ExtendedZones_Unregister.json
85+
* x-ms-original-file: 2024-04-01-preview/ExtendedZones_Unregister.json
9486
*/
9587
/**
9688
* Sample code: UnregisterExtendedZone.
@@ -111,9 +103,7 @@ public final class ExtendedZonesUnregisterSamples {
111103
*/
112104
public final class OperationsListSamples {
113105
/*
114-
* x-ms-original-file:
115-
* specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/Operations_List.
116-
* json
106+
* x-ms-original-file: 2024-04-01-preview/Operations_List.json
117107
*/
118108
/**
119109
* Sample code: ListOperations.

sdk/edgezones/azure-resourcemanager-edgezones/pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!--
22
~ Copyright (c) Microsoft Corporation. All rights reserved.
33
~ Licensed under the MIT License.
4-
~ Code generated by Microsoft (R) AutoRest Code Generator.
4+
~ Code generated by Microsoft (R) TypeSpec Code Generator.
55
-->
6-
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
77
<modelVersion>4.0.0</modelVersion>
88
<parent>
99
<groupId>com.azure</groupId>
@@ -14,11 +14,11 @@
1414

1515
<groupId>com.azure.resourcemanager</groupId>
1616
<artifactId>azure-resourcemanager-edgezones</artifactId>
17-
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-edgezones;current} -->
17+
<version>1.0.0-beta.4</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-edgezones;current} -->
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Edge Zones Management</name>
21-
<description>This package contains Microsoft Azure SDK for Edge Zones Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-04-01-preview.</description>
21+
<description>This package contains Microsoft Azure SDK for Edge Zones Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2024-04-01-preview.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -46,7 +46,6 @@
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
4848
<revapi.skip>true</revapi.skip>
49-
<spotless.skip>false</spotless.skip>
5049
</properties>
5150
<dependencies>
5251
<dependency>

sdk/edgezones/azure-resourcemanager-edgezones/src/main/java/com/azure/resourcemanager/edgezones/EdgeZonesManager.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.edgezones;
66

@@ -22,17 +22,19 @@
2222
import com.azure.core.http.policy.UserAgentPolicy;
2323
import com.azure.core.management.profile.AzureProfile;
2424
import com.azure.core.util.Configuration;
25+
import com.azure.core.util.CoreUtils;
2526
import com.azure.core.util.logging.ClientLogger;
26-
import com.azure.resourcemanager.edgezones.fluent.MicrosoftEdgeZones;
27+
import com.azure.resourcemanager.edgezones.fluent.EdgeZonesManagementClient;
28+
import com.azure.resourcemanager.edgezones.implementation.EdgeZonesManagementClientBuilder;
2729
import com.azure.resourcemanager.edgezones.implementation.ExtendedZonesImpl;
28-
import com.azure.resourcemanager.edgezones.implementation.MicrosoftEdgeZonesBuilder;
2930
import com.azure.resourcemanager.edgezones.implementation.OperationsImpl;
3031
import com.azure.resourcemanager.edgezones.models.ExtendedZones;
3132
import com.azure.resourcemanager.edgezones.models.Operations;
3233
import java.time.Duration;
3334
import java.time.temporal.ChronoUnit;
3435
import java.util.ArrayList;
3536
import java.util.List;
37+
import java.util.Map;
3638
import java.util.Objects;
3739
import java.util.stream.Collectors;
3840

@@ -44,12 +46,12 @@ public final class EdgeZonesManager {
4446

4547
private ExtendedZones extendedZones;
4648

47-
private final MicrosoftEdgeZones clientObject;
49+
private final EdgeZonesManagementClient clientObject;
4850

4951
private EdgeZonesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
5052
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
5153
Objects.requireNonNull(profile, "'profile' cannot be null.");
52-
this.clientObject = new MicrosoftEdgeZonesBuilder().pipeline(httpPipeline)
54+
this.clientObject = new EdgeZonesManagementClientBuilder().pipeline(httpPipeline)
5355
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
5456
.subscriptionId(profile.getSubscriptionId())
5557
.defaultPollInterval(defaultPollInterval)
@@ -96,6 +98,9 @@ public static Configurable configure() {
9698
*/
9799
public static final class Configurable {
98100
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
101+
private static final String SDK_VERSION = "version";
102+
private static final Map<String, String> PROPERTIES
103+
= CoreUtils.getProperties("azure-resourcemanager-edgezones.properties");
99104

100105
private HttpClient httpClient;
101106
private HttpLogOptions httpLogOptions;
@@ -203,12 +208,14 @@ public EdgeZonesManager authenticate(TokenCredential credential, AzureProfile pr
203208
Objects.requireNonNull(credential, "'credential' cannot be null.");
204209
Objects.requireNonNull(profile, "'profile' cannot be null.");
205210

211+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
212+
206213
StringBuilder userAgentBuilder = new StringBuilder();
207214
userAgentBuilder.append("azsdk-java")
208215
.append("-")
209216
.append("com.azure.resourcemanager.edgezones")
210217
.append("/")
211-
.append("1.0.0-beta.2");
218+
.append(clientVersion);
212219
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
213220
userAgentBuilder.append(" (")
214221
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -279,12 +286,12 @@ public ExtendedZones extendedZones() {
279286
}
280287

281288
/**
282-
* Gets wrapped service client MicrosoftEdgeZones providing direct access to the underlying auto-generated API
283-
* implementation, based on Azure REST API.
289+
* Gets wrapped service client EdgeZonesManagementClient providing direct access to the underlying auto-generated
290+
* API implementation, based on Azure REST API.
284291
*
285-
* @return Wrapped service client MicrosoftEdgeZones.
292+
* @return Wrapped service client EdgeZonesManagementClient.
286293
*/
287-
public MicrosoftEdgeZones serviceClient() {
294+
public EdgeZonesManagementClient serviceClient() {
288295
return this.clientObject;
289296
}
290297
}

sdk/edgezones/azure-resourcemanager-edgezones/src/main/java/com/azure/resourcemanager/edgezones/fluent/MicrosoftEdgeZones.java renamed to sdk/edgezones/azure-resourcemanager-edgezones/src/main/java/com/azure/resourcemanager/edgezones/fluent/EdgeZonesManagementClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.edgezones.fluent;
66

77
import com.azure.core.http.HttpPipeline;
88
import java.time.Duration;
99

1010
/**
11-
* The interface for MicrosoftEdgeZones class.
11+
* The interface for EdgeZonesManagementClient class.
1212
*/
13-
public interface MicrosoftEdgeZones {
13+
public interface EdgeZonesManagementClient {
1414
/**
15-
* Gets The ID of the target subscription. The value must be an UUID.
16-
*
17-
* @return the subscriptionId value.
18-
*/
19-
String getSubscriptionId();
20-
21-
/**
22-
* Gets server parameter.
15+
* Gets Service host.
2316
*
2417
* @return the endpoint value.
2518
*/
2619
String getEndpoint();
2720

2821
/**
29-
* Gets Api Version.
22+
* Gets Version parameter.
3023
*
3124
* @return the apiVersion value.
3225
*/
3326
String getApiVersion();
3427

28+
/**
29+
* Gets The ID of the target subscription. The value must be an UUID.
30+
*
31+
* @return the subscriptionId value.
32+
*/
33+
String getSubscriptionId();
34+
3535
/**
3636
* Gets The HTTP pipeline to send requests through.
3737
*

sdk/edgezones/azure-resourcemanager-edgezones/src/main/java/com/azure/resourcemanager/edgezones/fluent/ExtendedZonesClient.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.edgezones.fluent;
66

@@ -16,51 +16,51 @@
1616
*/
1717
public interface ExtendedZonesClient {
1818
/**
19-
* Lists the Azure Extended Zones available to a subscription.
19+
* Gets an Azure Extended Zone for a subscription.
2020
*
21+
* @param extendedZoneName The name of the ExtendedZone.
22+
* @param context The context to associate with this operation.
23+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2124
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2225
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
23-
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
26+
* @return an Azure Extended Zone for a subscription along with {@link Response}.
2427
*/
25-
@ServiceMethod(returns = ReturnType.COLLECTION)
26-
PagedIterable<ExtendedZoneInner> list();
28+
@ServiceMethod(returns = ReturnType.SINGLE)
29+
Response<ExtendedZoneInner> getWithResponse(String extendedZoneName, Context context);
2730

2831
/**
29-
* Lists the Azure Extended Zones available to a subscription.
32+
* Gets an Azure Extended Zone for a subscription.
3033
*
31-
* @param context The context to associate with this operation.
34+
* @param extendedZoneName The name of the ExtendedZone.
3235
* @throws IllegalArgumentException thrown if parameters fail the validation.
3336
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3437
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
35-
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
38+
* @return an Azure Extended Zone for a subscription.
3639
*/
37-
@ServiceMethod(returns = ReturnType.COLLECTION)
38-
PagedIterable<ExtendedZoneInner> list(Context context);
40+
@ServiceMethod(returns = ReturnType.SINGLE)
41+
ExtendedZoneInner get(String extendedZoneName);
3942

4043
/**
41-
* Gets an Azure Extended Zone for a subscription.
44+
* Lists the Azure Extended Zones available to a subscription.
4245
*
43-
* @param extendedZoneName The name of the ExtendedZone.
44-
* @param context The context to associate with this operation.
45-
* @throws IllegalArgumentException thrown if parameters fail the validation.
4646
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4747
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
48-
* @return an Azure Extended Zone for a subscription along with {@link Response}.
48+
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
4949
*/
50-
@ServiceMethod(returns = ReturnType.SINGLE)
51-
Response<ExtendedZoneInner> getWithResponse(String extendedZoneName, Context context);
50+
@ServiceMethod(returns = ReturnType.COLLECTION)
51+
PagedIterable<ExtendedZoneInner> list();
5252

5353
/**
54-
* Gets an Azure Extended Zone for a subscription.
54+
* Lists the Azure Extended Zones available to a subscription.
5555
*
56-
* @param extendedZoneName The name of the ExtendedZone.
56+
* @param context The context to associate with this operation.
5757
* @throws IllegalArgumentException thrown if parameters fail the validation.
5858
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5959
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
60-
* @return an Azure Extended Zone for a subscription.
60+
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
6161
*/
62-
@ServiceMethod(returns = ReturnType.SINGLE)
63-
ExtendedZoneInner get(String extendedZoneName);
62+
@ServiceMethod(returns = ReturnType.COLLECTION)
63+
PagedIterable<ExtendedZoneInner> list(Context context);
6464

6565
/**
6666
* Registers a subscription for an Extended Zone.

0 commit comments

Comments
 (0)