Skip to content
Open
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 @@ -524,7 +524,7 @@ com.azure.resourcemanager:azure-resourcemanager-edgeactions;1.0.0-beta.1;1.0.0-b
com.azure.resourcemanager:azure-resourcemanager-computebulkactions;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-artifactsigning;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-appnetwork;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0-beta.2;1.0.0
com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-relationships;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0-beta.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0 (2026-08-18)

### Features Added
- Azure Resource Manager Service Groups client library for Java. This package contains Microsoft Azure SDK for Service Groups Management SDK. Package api-version 2026-08-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.ServiceGroupCollectionResponse` was removed

#### `models.ServiceGroups` was modified

* `listAncestorsWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
* `listAncestors(java.lang.String)` was removed

### Features Added

* `models.OperationDisplay` was added

* `models.ActionType` was added

* `models.Operation` was added

* `models.Operations` was added

* `models.Origin` was added

* `models.ServiceGroupAttributes` was added

#### `ServiceGroupsManager` was modified

* `operations()` was added

#### `models.ServiceGroupProperties` was modified

### Other Changes
* `withAttributes(models.ServiceGroupAttributes)` was added
* `attributes()` was added

## 1.0.0-beta.2 (2026-03-27)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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).
This package contains Microsoft Azure SDK for Service Groups Management SDK. Package api-version 2026-08-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-servicegroups</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
62 changes: 34 additions & 28 deletions sdk/servicegroups/azure-resourcemanager-servicegroups/SAMPLE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Code snippets and samples


## Operations

- [List](#operations_list)

## ResourceProvider

- [CreateOrUpdateServiceGroup](#resourceprovider_createorupdateservicegroup)
Expand All @@ -10,20 +14,41 @@
## ServiceGroups

- [Get](#servicegroups_get)
- [ListAncestors](#servicegroups_listancestors)
### Operations_List
Comment thread
weidongxu-microsoft marked this conversation as resolved.

```java
/**
* Samples for Operations List.
*/
public final class OperationsListSamples {
/*
* x-ms-original-file: 2026-08-01/Operations_List.json
*/
/**
* Sample code: ListOperations.
*
* @param manager Entry point to ServiceGroupsManager.
*/
public static void listOperations(com.azure.resourcemanager.servicegroups.ServiceGroupsManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```

### ResourceProvider_CreateOrUpdateServiceGroup

```java
import com.azure.resourcemanager.servicegroups.fluent.models.ServiceGroupInner;
import com.azure.resourcemanager.servicegroups.models.ParentServiceGroupProperties;
import com.azure.resourcemanager.servicegroups.models.ServiceGroupAttributes;
import com.azure.resourcemanager.servicegroups.models.ServiceGroupProperties;

/**
* Samples for ResourceProvider CreateOrUpdateServiceGroup.
*/
public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
/*
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Put.json
* x-ms-original-file: 2026-08-01/ServiceGroup_Put.json
*/
/**
* Sample code: PutServiceGroup.
Expand All @@ -35,6 +60,7 @@ public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
.createOrUpdateServiceGroup("ServiceGroup1",
new ServiceGroupInner()
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name")
.withAttributes(new ServiceGroupAttributes().withCriticality(2))
.withParent(new ParentServiceGroupProperties()
.withResourceId("/providers/Microsoft.Management/serviceGroups/RootGroup"))),
com.azure.core.util.Context.NONE);
Expand All @@ -50,7 +76,7 @@ public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
*/
public final class ResourceProviderDeleteServiceGroupSamples {
/*
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Delete.json
* x-ms-original-file: 2026-08-01/ServiceGroup_Delete.json
*/
/**
* Sample code: DeleteServiceGroup.
Expand All @@ -68,6 +94,7 @@ public final class ResourceProviderDeleteServiceGroupSamples {

```java
import com.azure.resourcemanager.servicegroups.fluent.models.ServiceGroupInner;
import com.azure.resourcemanager.servicegroups.models.ServiceGroupAttributes;
import com.azure.resourcemanager.servicegroups.models.ServiceGroupProperties;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -77,7 +104,7 @@ import java.util.Map;
*/
public final class ResourceProviderUpdateServiceGroupSamples {
/*
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Patch.json
* x-ms-original-file: 2026-08-01/ServiceGroup_Patch.json
*/
/**
* Sample code: PatchServiceGroup.
Expand All @@ -88,7 +115,8 @@ public final class ResourceProviderUpdateServiceGroupSamples {
manager.resourceProviders()
.updateServiceGroup("ServiceGroup1",
new ServiceGroupInner()
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name"))
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name")
.withAttributes(new ServiceGroupAttributes().withCriticality(2)))
.withTags(mapOf("tag1", "value1", "tag2", "value2")),
com.azure.core.util.Context.NONE);
}
Expand All @@ -115,7 +143,7 @@ public final class ResourceProviderUpdateServiceGroupSamples {
*/
public final class ServiceGroupsGetSamples {
/*
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Get.json
* x-ms-original-file: 2026-08-01/ServiceGroup_Get.json
*/
/**
* Sample code: GetServiceGroup.
Expand All @@ -129,25 +157,3 @@ public final class ServiceGroupsGetSamples {
}
```

### ServiceGroups_ListAncestors

```java
/**
* Samples for ServiceGroups ListAncestors.
*/
public final class ServiceGroupsListAncestorsSamples {
/*
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_ListAncestors.json
*/
/**
* Sample code: ListServiceGroupAncestors.
*
* @param manager Entry point to ServiceGroupsManager.
*/
public static void listServiceGroupAncestors(com.azure.resourcemanager.servicegroups.ServiceGroupsManager manager) {
manager.serviceGroups()
.listAncestorsWithResponse("20000000-0001-0000-0000-000000000000", com.azure.core.util.Context.NONE);
}
}
```

Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

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

<name>Microsoft Azure SDK for Service Groups Management</name>
<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>
<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. Package api-version 2026-08-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,7 +45,7 @@
<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>
<revapi.skip>false</revapi.skip>
Comment thread
weidongxu-microsoft marked this conversation as resolved.
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicegroups.fluent.ServiceGroupsManagementClient;
import com.azure.resourcemanager.servicegroups.implementation.OperationsImpl;
import com.azure.resourcemanager.servicegroups.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.servicegroups.implementation.ServiceGroupsImpl;
import com.azure.resourcemanager.servicegroups.implementation.ServiceGroupsManagementClientBuilder;
import com.azure.resourcemanager.servicegroups.models.Operations;
import com.azure.resourcemanager.servicegroups.models.ResourceProviders;
import com.azure.resourcemanager.servicegroups.models.ServiceGroups;
import java.time.Duration;
Expand All @@ -40,15 +42,14 @@

/**
* Entry point to ServiceGroupsManager.
* 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.
*/
public final class ServiceGroupsManager {
private ResourceProviders resourceProviders;

private ServiceGroups serviceGroups;

private Operations operations;

private final ServiceGroupsManagementClient clientObject;

private ServiceGroupsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -287,6 +288,18 @@ public ServiceGroups serviceGroups() {
return serviceGroups;
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets wrapped service client ServiceGroupsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.servicegroups.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.servicegroups.fluent.models.OperationInner;

/**
* An instance of this class provides access to all the operations defined in OperationsClient.
*/
public interface OperationsClient {
/**
* Lists all available REST API operations for the Microsoft.Management resource provider.
*
* @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 a list of REST API operations supported by an Azure Resource Provider as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list();

/**
* Lists all available REST API operations for the Microsoft.Management resource provider.
*
* @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 a list of REST API operations supported by an Azure Resource Provider as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list(Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.servicegroups.fluent.models.ServiceGroupCollectionResponseInner;
import com.azure.resourcemanager.servicegroups.fluent.models.ServiceGroupInner;

/**
Expand Down Expand Up @@ -39,29 +38,4 @@ public interface ServiceGroupsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServiceGroupInner get(String serviceGroupName);

/**
* Get the details of the serviceGroup's ancestors.
*
* @param serviceGroupName ServiceGroup Name.
* @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 details of the serviceGroup's ancestors along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ServiceGroupCollectionResponseInner> listAncestorsWithResponse(String serviceGroupName, Context context);

/**
* Get the details of the serviceGroup's ancestors.
*
* @param serviceGroupName ServiceGroup Name.
* @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 details of the serviceGroup's ancestors.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServiceGroupCollectionResponseInner listAncestors(String serviceGroupName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,11 @@ public interface ServiceGroupsManagementClient {
* @return the ServiceGroupsClient object.
*/
ServiceGroupsClient getServiceGroups();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();
}
Loading
Loading