Skip to content

Commit 156e48e

Browse files
authored
Configurations: 'specification/management/resource-manager/Microsoft.Management/ServiceGroups/tspconfig.yaml', API Version: 2024-02-01-preview, SDK Release Type: beta, and CommitSHA: '37ddf2a815c7d15c52a7e8ddd5c1a1aa9689555c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6074614 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. (#48613)
1 parent 5f00fdd commit 156e48e

47 files changed

Lines changed: 306 additions & 588 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.

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

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

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2026-03-27)
44

5-
### Features Added
5+
- Azure Resource Manager Service Groups client library for Java. This package contains Microsoft Azure SDK for Service Groups Management SDK. The Groups RP provides Service Groups as a construct to group multiple resources, resource groups, subscriptions and other service groups into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. Package api-version 2024-02-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
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `models.ServiceGroupProperties` was modified
10+
11+
* `validate()` was removed
12+
13+
#### `models.ParentServiceGroupProperties` was modified
1014

11-
### Other Changes
15+
* `validate()` was removed
1216

1317
## 1.0.0-beta.1 (2026-03-25)
1418

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

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

33
Azure Resource Manager Service Groups client library for Java.
44

5-
This package contains Microsoft Azure SDK for Service Groups Management SDK. The Groups RP provides Service Groups as a construct to group multiple resources, resource groups, subscriptions and other service groups into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. Package tag package-2024-02-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 Service Groups Management SDK. The Groups RP provides Service Groups as a construct to group multiple resources, resource groups, subscriptions and other service groups into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. Package api-version 2024-02-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

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-servicegroups</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ import com.azure.resourcemanager.servicegroups.models.ServiceGroupProperties;
2323
*/
2424
public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
2525
/*
26-
* x-ms-original-file:
27-
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
28-
* ServiceGroup_Put.json
26+
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Put.json
2927
*/
3028
/**
3129
* Sample code: PutServiceGroup.
@@ -52,9 +50,7 @@ public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
5250
*/
5351
public final class ResourceProviderDeleteServiceGroupSamples {
5452
/*
55-
* x-ms-original-file:
56-
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
57-
* ServiceGroup_Delete.json
53+
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Delete.json
5854
*/
5955
/**
6056
* Sample code: DeleteServiceGroup.
@@ -81,9 +77,7 @@ import java.util.Map;
8177
*/
8278
public final class ResourceProviderUpdateServiceGroupSamples {
8379
/*
84-
* x-ms-original-file:
85-
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
86-
* ServiceGroup_Patch.json
80+
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Patch.json
8781
*/
8882
/**
8983
* Sample code: PatchServiceGroup.
@@ -93,8 +87,9 @@ public final class ResourceProviderUpdateServiceGroupSamples {
9387
public static void patchServiceGroup(com.azure.resourcemanager.servicegroups.ServiceGroupsManager manager) {
9488
manager.resourceProviders()
9589
.updateServiceGroup("ServiceGroup1",
96-
new ServiceGroupInner().withTags(mapOf("tag1", "value1", "tag2", "value2"))
97-
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name")),
90+
new ServiceGroupInner()
91+
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name"))
92+
.withTags(mapOf("tag1", "value1", "tag2", "value2")),
9893
com.azure.core.util.Context.NONE);
9994
}
10095

@@ -120,9 +115,7 @@ public final class ResourceProviderUpdateServiceGroupSamples {
120115
*/
121116
public final class ServiceGroupsGetSamples {
122117
/*
123-
* x-ms-original-file:
124-
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
125-
* ServiceGroup_Get.json
118+
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Get.json
126119
*/
127120
/**
128121
* Sample code: GetServiceGroup.
@@ -144,9 +137,7 @@ public final class ServiceGroupsGetSamples {
144137
*/
145138
public final class ServiceGroupsListAncestorsSamples {
146139
/*
147-
* x-ms-original-file:
148-
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
149-
* ServiceGroup_ListAncestors.json
140+
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_ListAncestors.json
150141
*/
151142
/**
152143
* Sample code: ListServiceGroupAncestors.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
-->
66
<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>
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Service Groups Management</name>
21-
<description>This package contains Microsoft Azure SDK for Service Groups Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Groups RP provides Service Groups as a construct to group multiple resources, resource groups, subscriptions and other service groups into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. Package tag package-2024-02-preview.</description>
21+
<description>This package contains Microsoft Azure SDK for Service Groups Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Groups RP provides Service Groups as a construct to group multiple resources, resource groups, subscriptions and other service groups into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. Package api-version 2024-02-01-preview.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/servicegroups/azure-resourcemanager-servicegroups/src/main/java/com/azure/resourcemanager/servicegroups/ServiceGroupsManager.java

Lines changed: 15 additions & 15 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.servicegroups;
66

@@ -45,10 +45,10 @@
4545
* reporting for those resources.
4646
*/
4747
public final class ServiceGroupsManager {
48-
private ServiceGroups serviceGroups;
49-
5048
private ResourceProviders resourceProviders;
5149

50+
private ServiceGroups serviceGroups;
51+
5252
private final ServiceGroupsManagementClient clientObject;
5353

5454
private ServiceGroupsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -263,18 +263,6 @@ public ServiceGroupsManager authenticate(TokenCredential credential, AzureProfil
263263
}
264264
}
265265

266-
/**
267-
* Gets the resource collection API of ServiceGroups.
268-
*
269-
* @return Resource collection API of ServiceGroups.
270-
*/
271-
public ServiceGroups serviceGroups() {
272-
if (this.serviceGroups == null) {
273-
this.serviceGroups = new ServiceGroupsImpl(clientObject.getServiceGroups(), this);
274-
}
275-
return serviceGroups;
276-
}
277-
278266
/**
279267
* Gets the resource collection API of ResourceProviders.
280268
*
@@ -287,6 +275,18 @@ public ResourceProviders resourceProviders() {
287275
return resourceProviders;
288276
}
289277

278+
/**
279+
* Gets the resource collection API of ServiceGroups.
280+
*
281+
* @return Resource collection API of ServiceGroups.
282+
*/
283+
public ServiceGroups serviceGroups() {
284+
if (this.serviceGroups == null) {
285+
this.serviceGroups = new ServiceGroupsImpl(clientObject.getServiceGroups(), this);
286+
}
287+
return serviceGroups;
288+
}
289+
290290
/**
291291
* Gets wrapped service client ServiceGroupsManagementClient providing direct access to the underlying
292292
* auto-generated API implementation, based on Azure REST API.

sdk/servicegroups/azure-resourcemanager-servicegroups/src/main/java/com/azure/resourcemanager/servicegroups/fluent/ResourceProvidersClient.java

Lines changed: 1 addition & 1 deletion
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.servicegroups.fluent;
66

sdk/servicegroups/azure-resourcemanager-servicegroups/src/main/java/com/azure/resourcemanager/servicegroups/fluent/ServiceGroupsClient.java

Lines changed: 1 addition & 1 deletion
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.servicegroups.fluent;
66

sdk/servicegroups/azure-resourcemanager-servicegroups/src/main/java/com/azure/resourcemanager/servicegroups/fluent/ServiceGroupsManagementClient.java

Lines changed: 9 additions & 9 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.servicegroups.fluent;
66

@@ -12,14 +12,14 @@
1212
*/
1313
public interface ServiceGroupsManagementClient {
1414
/**
15-
* Gets server parameter.
15+
* Gets Service host.
1616
*
1717
* @return the endpoint value.
1818
*/
1919
String getEndpoint();
2020

2121
/**
22-
* Gets Api Version.
22+
* Gets Version parameter.
2323
*
2424
* @return the apiVersion value.
2525
*/
@@ -40,16 +40,16 @@ public interface ServiceGroupsManagementClient {
4040
Duration getDefaultPollInterval();
4141

4242
/**
43-
* Gets the ServiceGroupsClient object to access its operations.
43+
* Gets the ResourceProvidersClient object to access its operations.
4444
*
45-
* @return the ServiceGroupsClient object.
45+
* @return the ResourceProvidersClient object.
4646
*/
47-
ServiceGroupsClient getServiceGroups();
47+
ResourceProvidersClient getResourceProviders();
4848

4949
/**
50-
* Gets the ResourceProvidersClient object to access its operations.
50+
* Gets the ServiceGroupsClient object to access its operations.
5151
*
52-
* @return the ResourceProvidersClient object.
52+
* @return the ServiceGroupsClient object.
5353
*/
54-
ResourceProvidersClient getResourceProviders();
54+
ServiceGroupsClient getServiceGroups();
5555
}

sdk/servicegroups/azure-resourcemanager-servicegroups/src/main/java/com/azure/resourcemanager/servicegroups/fluent/models/ServiceGroupCollectionResponseInner.java

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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.servicegroups.fluent.models;
66

7-
import com.azure.core.annotation.Fluent;
7+
import com.azure.core.annotation.Immutable;
88
import com.azure.json.JsonReader;
99
import com.azure.json.JsonSerializable;
1010
import com.azure.json.JsonToken;
@@ -15,27 +15,27 @@
1515
/**
1616
* Response holding an array of service groups and a nextLink that supports pagination.
1717
*/
18-
@Fluent
18+
@Immutable
1919
public final class ServiceGroupCollectionResponseInner
2020
implements JsonSerializable<ServiceGroupCollectionResponseInner> {
2121
/*
22-
* Array of service groups based on the request criteria
22+
* The ServiceGroup items on this page
2323
*/
2424
private List<ServiceGroupInner> value;
2525

2626
/*
27-
* URL to query the next page of results for this request
27+
* The link to the next page of items
2828
*/
2929
private String nextLink;
3030

3131
/**
3232
* Creates an instance of ServiceGroupCollectionResponseInner class.
3333
*/
34-
public ServiceGroupCollectionResponseInner() {
34+
private ServiceGroupCollectionResponseInner() {
3535
}
3636

3737
/**
38-
* Get the value property: Array of service groups based on the request criteria.
38+
* Get the value property: The ServiceGroup items on this page.
3939
*
4040
* @return the value value.
4141
*/
@@ -44,47 +44,14 @@ public List<ServiceGroupInner> value() {
4444
}
4545

4646
/**
47-
* Set the value property: Array of service groups based on the request criteria.
48-
*
49-
* @param value the value value to set.
50-
* @return the ServiceGroupCollectionResponseInner object itself.
51-
*/
52-
public ServiceGroupCollectionResponseInner withValue(List<ServiceGroupInner> value) {
53-
this.value = value;
54-
return this;
55-
}
56-
57-
/**
58-
* Get the nextLink property: URL to query the next page of results for this request.
47+
* Get the nextLink property: The link to the next page of items.
5948
*
6049
* @return the nextLink value.
6150
*/
6251
public String nextLink() {
6352
return this.nextLink;
6453
}
6554

66-
/**
67-
* Set the nextLink property: URL to query the next page of results for this request.
68-
*
69-
* @param nextLink the nextLink value to set.
70-
* @return the ServiceGroupCollectionResponseInner object itself.
71-
*/
72-
public ServiceGroupCollectionResponseInner withNextLink(String nextLink) {
73-
this.nextLink = nextLink;
74-
return this;
75-
}
76-
77-
/**
78-
* Validates the instance.
79-
*
80-
* @throws IllegalArgumentException thrown if the instance is not valid.
81-
*/
82-
public void validate() {
83-
if (value() != null) {
84-
value().forEach(e -> e.validate());
85-
}
86-
}
87-
8855
/**
8956
* {@inheritDoc}
9057
*/
@@ -102,6 +69,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
10269
* @param jsonReader The JsonReader being read.
10370
* @return An instance of ServiceGroupCollectionResponseInner if the JsonReader was pointing to an instance of it,
10471
* or null if it was pointing to JSON null.
72+
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
10573
* @throws IOException If an error occurs while reading the ServiceGroupCollectionResponseInner.
10674
*/
10775
public static ServiceGroupCollectionResponseInner fromJson(JsonReader jsonReader) throws IOException {

0 commit comments

Comments
 (0)