Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Release History

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

### Features Added
- 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).

### Breaking Changes

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

* `validate()` was removed

#### `models.ParentServiceGroupProperties` was modified

### Other Changes
* `validate()` was removed

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

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 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).
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).

## 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.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
25 changes: 8 additions & 17 deletions sdk/servicegroups/azure-resourcemanager-servicegroups/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ import com.azure.resourcemanager.servicegroups.models.ServiceGroupProperties;
*/
public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
/*
* x-ms-original-file:
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
* ServiceGroup_Put.json
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Put.json
*/
/**
* Sample code: PutServiceGroup.
Expand All @@ -52,9 +50,7 @@ public final class ResourceProviderCreateOrUpdateServiceGroupSamples {
*/
public final class ResourceProviderDeleteServiceGroupSamples {
/*
* x-ms-original-file:
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
* ServiceGroup_Delete.json
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Delete.json
*/
/**
* Sample code: DeleteServiceGroup.
Expand All @@ -81,9 +77,7 @@ import java.util.Map;
*/
public final class ResourceProviderUpdateServiceGroupSamples {
/*
* x-ms-original-file:
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
* ServiceGroup_Patch.json
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Patch.json
*/
/**
* Sample code: PatchServiceGroup.
Expand All @@ -93,8 +87,9 @@ public final class ResourceProviderUpdateServiceGroupSamples {
public static void patchServiceGroup(com.azure.resourcemanager.servicegroups.ServiceGroupsManager manager) {
manager.resourceProviders()
.updateServiceGroup("ServiceGroup1",
new ServiceGroupInner().withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name")),
new ServiceGroupInner()
.withProperties(new ServiceGroupProperties().withDisplayName("ServiceGroup 1 Name"))
.withTags(mapOf("tag1", "value1", "tag2", "value2")),
com.azure.core.util.Context.NONE);
}

Expand All @@ -120,9 +115,7 @@ public final class ResourceProviderUpdateServiceGroupSamples {
*/
public final class ServiceGroupsGetSamples {
/*
* x-ms-original-file:
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
* ServiceGroup_Get.json
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_Get.json
*/
/**
* Sample code: GetServiceGroup.
Expand All @@ -144,9 +137,7 @@ public final class ServiceGroupsGetSamples {
*/
public final class ServiceGroupsListAncestorsSamples {
/*
* x-ms-original-file:
* specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2024-02-01-preview/examples/
* ServiceGroup_ListAncestors.json
* x-ms-original-file: 2024-02-01-preview/ServiceGroup_ListAncestors.json
*/
/**
* Sample code: ListServiceGroupAncestors.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
<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">
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,7 +18,7 @@
<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 tag package-2024-02-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. 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>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.servicegroups;

Expand Down Expand Up @@ -45,10 +45,10 @@
* reporting for those resources.
*/
public final class ServiceGroupsManager {
private ServiceGroups serviceGroups;

private ResourceProviders resourceProviders;

private ServiceGroups serviceGroups;

private final ServiceGroupsManagementClient clientObject;

private ServiceGroupsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -263,18 +263,6 @@ public ServiceGroupsManager authenticate(TokenCredential credential, AzureProfil
}
}

/**
* Gets the resource collection API of ServiceGroups.
*
* @return Resource collection API of ServiceGroups.
*/
public ServiceGroups serviceGroups() {
if (this.serviceGroups == null) {
this.serviceGroups = new ServiceGroupsImpl(clientObject.getServiceGroups(), this);
}
return serviceGroups;
}

/**
* Gets the resource collection API of ResourceProviders.
*
Expand All @@ -287,6 +275,18 @@ public ResourceProviders resourceProviders() {
return resourceProviders;
}

/**
* Gets the resource collection API of ServiceGroups.
*
* @return Resource collection API of ServiceGroups.
*/
public ServiceGroups serviceGroups() {
if (this.serviceGroups == null) {
this.serviceGroups = new ServiceGroupsImpl(clientObject.getServiceGroups(), this);
}
return serviceGroups;
}

/**
* 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.servicegroups.fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.servicegroups.fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.servicegroups.fluent;

Expand All @@ -12,14 +12,14 @@
*/
public interface ServiceGroupsManagementClient {
/**
* Gets server parameter.
* Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();

/**
* Gets Api Version.
* Gets Version parameter.
*
* @return the apiVersion value.
*/
Expand All @@ -40,16 +40,16 @@ public interface ServiceGroupsManagementClient {
Duration getDefaultPollInterval();

/**
* Gets the ServiceGroupsClient object to access its operations.
* Gets the ResourceProvidersClient object to access its operations.
*
* @return the ServiceGroupsClient object.
* @return the ResourceProvidersClient object.
*/
ServiceGroupsClient getServiceGroups();
ResourceProvidersClient getResourceProviders();

/**
* Gets the ResourceProvidersClient object to access its operations.
* Gets the ServiceGroupsClient object to access its operations.
*
* @return the ResourceProvidersClient object.
* @return the ServiceGroupsClient object.
*/
ResourceProvidersClient getResourceProviders();
ServiceGroupsClient getServiceGroups();
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.servicegroups.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
Expand All @@ -15,27 +15,27 @@
/**
* Response holding an array of service groups and a nextLink that supports pagination.
*/
@Fluent
@Immutable
public final class ServiceGroupCollectionResponseInner
implements JsonSerializable<ServiceGroupCollectionResponseInner> {
/*
* Array of service groups based on the request criteria
* The ServiceGroup items on this page
*/
private List<ServiceGroupInner> value;

/*
* URL to query the next page of results for this request
* The link to the next page of items
*/
private String nextLink;

/**
* Creates an instance of ServiceGroupCollectionResponseInner class.
*/
public ServiceGroupCollectionResponseInner() {
private ServiceGroupCollectionResponseInner() {
}

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

/**
* Set the value property: Array of service groups based on the request criteria.
*
* @param value the value value to set.
* @return the ServiceGroupCollectionResponseInner object itself.
*/
public ServiceGroupCollectionResponseInner withValue(List<ServiceGroupInner> value) {
this.value = value;
return this;
}

/**
* Get the nextLink property: URL to query the next page of results for this request.
* Get the nextLink property: The link to the next page of items.
*
* @return the nextLink value.
*/
public String nextLink() {
return this.nextLink;
}

/**
* Set the nextLink property: URL to query the next page of results for this request.
*
* @param nextLink the nextLink value to set.
* @return the ServiceGroupCollectionResponseInner object itself.
*/
public ServiceGroupCollectionResponseInner withNextLink(String nextLink) {
this.nextLink = nextLink;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (value() != null) {
value().forEach(e -> e.validate());
}
}

/**
* {@inheritDoc}
*/
Expand All @@ -102,6 +69,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @param jsonReader The JsonReader being read.
* @return An instance of ServiceGroupCollectionResponseInner if the JsonReader was pointing to an instance of it,
* or null if it was pointing to JSON null.
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the ServiceGroupCollectionResponseInner.
*/
public static ServiceGroupCollectionResponseInner fromJson(JsonReader jsonReader) throws IOException {
Expand Down
Loading