Skip to content

Commit 29f9901

Browse files
azure-sdkv-jiaodi
andauthored
[AutoPR @azure-arm-managementgroups]-generated-from-SDK Generation - JS-6345731 (#38654)
Configurations: 'specification/management/resource-manager/Microsoft.Management/ManagementGroups/tspconfig.yaml', API Version: 2023-04-01, SDK Release Type: beta, and CommitSHA: '7803170d3e2e8d25cc67ac1d27ad50aa7e24d3a0' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6345731 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --------- Co-authored-by: Jiao Di (MSFT) <v-jiaodi@microsoft.com>
1 parent 505de39 commit 29f9901

189 files changed

Lines changed: 6708 additions & 7447 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.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@
745745
# PRLabel: %Mgmt
746746
/sdk/managednetworkfabric/arm-managednetworkfabric/ @qiaozha @MaryGao @JialinHuang803
747747

748-
# PRLabel: %Mgmt
748+
# PRLabel: %Mgmt %mgmt-review-needed
749749
/sdk/managementgroups/arm-managementgroups/ @qiaozha @MaryGao @JialinHuang803
750750

751751
# PRLabel: %Mgmt

pnpm-lock.yaml

Lines changed: 23 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/managementgroups/arm-managementgroups/CHANGELOG.md

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

3-
## 2.0.4 (Unreleased)
3+
## 3.0.0-beta.1 (2026-05-26)
4+
Compared with version 2.0.2
45

56
### Features Added
7+
- Added operation ManagementGroupsOperations.createOrUpdate
8+
- Added operation ManagementGroupsOperations.delete
9+
- Added Interface CreateManagementGroupProperties
10+
- Added Interface CreateOrUpdateSettingsProperties
11+
- Added Interface DescendantInfoProperties
12+
- Added Interface EntityInfoProperties
13+
- Added Interface ErrorAdditionalInfo
14+
- Added Interface ErrorDetail
15+
- Added Interface HierarchySettingsProperties
16+
- Added Interface ManagementGroupInfoProperties
17+
- Added Interface ManagementGroupProperties
18+
- Added Interface ManagementGroupsListDescendantsOptionalParams
19+
- Added Interface ManagementGroupSubscriptionsListSubscriptionsUnderManagementGroupOptionalParams
20+
- Added Interface OperationDisplay
21+
- Added Interface PagedAsyncIterableIterator
22+
- Added Interface PageSettings
23+
- Added Interface ProxyResource
24+
- Added Interface Resource
25+
- Added Interface RestorePollerOptions
26+
- Added Interface SimplePollerLike
27+
- Added Interface SubscriptionUnderManagementGroupProperties
28+
- Added Interface SystemData
29+
- Interface HierarchySettings has a new optional parameter systemData
30+
- Interface ManagementGroup has a new optional parameter systemData
31+
- Interface Operation has a new optional parameter actionType
32+
- Interface Operation has a new optional parameter isDataAction
33+
- Interface Operation has a new optional parameter origin
34+
- Interface SubscriptionUnderManagementGroup has a new optional parameter systemData
35+
- Added Type Alias ActionType
36+
- Added Type Alias AzureSupportedClouds
37+
- Added Type Alias CreatedByType
38+
- Added Type Alias EntitySearchType
39+
- Added Type Alias EntityViewParameterType
40+
- Added Type Alias ManagementGroupExpandType
41+
- Added Type Alias Origin
42+
- Added Type Alias Permissions
43+
- Added Enum AzureClouds
44+
- Added Enum KnownActionType
45+
- Added Enum KnownCreatedByType
46+
- Added Enum KnownEntitySearchType
47+
- Added Enum KnownEntityViewParameterType
48+
- Added Enum KnownManagementGroupExpandType
49+
- Added Enum KnownOrigin
50+
- Added Enum KnownVersions
651

752
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 2.0.3 (2025-08-22)
14-
15-
### Other Changes
16-
17-
- Other fixes
53+
- Operation ManagementGroups.beginDeleteAndWait has a new signature
54+
- Removed Interface AzureAsyncOperationResults
55+
- Removed Interface EntityHierarchyItem
56+
- Removed Interface ErrorDetails
57+
- Removed Interface ListSubscriptionUnderManagementGroup
58+
- Removed Interface ManagementGroupsGetDescendantsOptionalParams
59+
- Removed Interface ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams
60+
- Removed Interface OperationDisplayProperties
61+
- Removed Interface OperationResults
62+
- Type of parameter error of interface ErrorResponse is changed from ErrorDetails to ErrorDetail
63+
- Removed Type Alias Enum0
64+
- Removed Type Alias Enum2
65+
- Removed Type Alias Enum3
66+
- Removed Type Alias Permissions_2
67+
- Type alias "ManagementGroupChildType" has been changed
68+
- Removed Enum KnownEnum0
69+
- Removed Enum KnownEnum2
70+
- Removed Enum KnownEnum3
71+
- Removed Enum KnownManagementGroupChildType
72+
- Removed Enum KnownPermissions
1873

1974
## 2.0.2 (2022-12-05)
2075

@@ -40,4 +95,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
4095

4196
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
4297

43-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
98+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/managementgroups/arm-managementgroups/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/managementgroups/arm-managementgroups/README.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# Azure ManagementGroupsApi client library for JavaScript
1+
# Azure ManagementGroupsAPI client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ManagementGroupsApi client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ManagementGroupsAPI client.
44

55
The Azure Management Groups API enables consolidation of multiple
66
subscriptions/resources into an organizational hierarchy and centrally
77
manage access control, policies, alerting and reporting for those resources.
88

9-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managementgroups/arm-managementgroups) |
10-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-managementgroups) |
11-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-managementgroups) |
12-
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
9+
Key links:
10+
11+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managementgroups/arm-managementgroups)
12+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-managementgroups)
13+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-managementgroups?view=azure-node-preview)
14+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managementgroups/arm-managementgroups/samples)
1315

1416
## Getting started
1517

@@ -26,27 +28,26 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
2628

2729
### Install the `@azure/arm-managementgroups` package
2830

29-
Install the Azure ManagementGroupsApi client library for JavaScript with `npm`:
31+
Install the Azure ManagementGroupsAPI client library for JavaScript with `npm`:
3032

3133
```bash
3234
npm install @azure/arm-managementgroups
3335
```
3436

3537
### Create and authenticate a `ManagementGroupsAPI`
3638

37-
To create a client object to access the Azure ManagementGroupsApi API, you will need the `endpoint` of your Azure ManagementGroupsApi resource and a `credential`. The Azure ManagementGroupsApi client can use Azure Active Directory credentials to authenticate.
38-
You can find the endpoint for your Azure ManagementGroupsApi resource in the [Azure Portal][azure_portal].
39+
To create a client object to access the Azure ManagementGroupsAPI API, you will need the `endpoint` of your Azure ManagementGroupsAPI resource and a `credential`. The Azure ManagementGroupsAPI client can use Azure Active Directory credentials to authenticate.
40+
You can find the endpoint for your Azure ManagementGroupsAPI resource in the [Azure Portal][azure_portal].
3941

40-
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
42+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
4143

4244
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
4345

4446
```bash
4547
npm install @azure/identity
4648
```
4749

48-
You will also need to **register a new AAD application and grant access to Azure ManagementGroupsApi** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
49-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
50+
You will also need to **register a new AAD application and grant access to Azure ManagementGroupsAPI** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
5051

5152
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5253

@@ -56,7 +57,7 @@ Using Node.js and Node-like environments, you can use the `DefaultAzureCredentia
5657
import { ManagementGroupsAPI } from "@azure/arm-managementgroups";
5758
import { DefaultAzureCredential } from "@azure/identity";
5859

59-
const client = new ManagementGroupsAPI(new DefaultAzureCredential(), subscriptionId);
60+
const client = new ManagementGroupsAPI(new DefaultAzureCredential());
6061
```
6162

6263
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
@@ -69,18 +70,18 @@ const credential = new InteractiveBrowserCredential({
6970
tenantId: "<YOUR_TENANT_ID>",
7071
clientId: "<YOUR_CLIENT_ID>",
7172
});
72-
const client = new ManagementGroupsAPI(credential, subscriptionId);
73+
const client = new ManagementGroupsAPI(credential);
7374
```
7475

75-
### JavaScript Bundle
7676

77+
### JavaScript Bundle
7778
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7879

7980
## Key concepts
8081

8182
### ManagementGroupsAPI
8283

83-
`ManagementGroupsAPI` is the primary interface for developers using the Azure ManagementGroupsApi client library. Explore the methods on this client object to understand the different features of the Azure ManagementGroupsApi service that you can access.
84+
`ManagementGroupsAPI` is the primary interface for developers using the Azure ManagementGroupsAPI client library. Explore the methods on this client object to understand the different features of the Azure ManagementGroupsAPI service that you can access.
8485

8586
## Troubleshooting
8687

@@ -98,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
9899

99100
## Next steps
100101

101-
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
102+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managementgroups/arm-managementgroups/samples) directory for detailed examples on how to use this library.
102103

103104
## Contributing
104105

@@ -108,8 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108109

109110
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110111

111-
[azure_cli]: https://learn.microsoft.com/cli/azure
112-
[azure_sub]: https://azure.microsoft.com/free/
113112
[azure_sub]: https://azure.microsoft.com/free/
114113
[azure_portal]: https://portal.azure.com
115114
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/managementgroups/arm-managementgroups/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"extends": "../../../api-extractor-base.json"
3-
}
1+
{ "extends": "../../../api-extractor-base.json" }

sdk/managementgroups/arm-managementgroups/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/managementgroups/arm-managementgroups",
5-
"Tag": "js/managementgroups/arm-managementgroups_d18ac896ed"
5+
"Tag": "js/managementgroups/arm-managementgroups_baf00a10fd"
66
}

sdk/managementgroups/arm-managementgroups/config/tsconfig.samples.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"extends": "../../../../eng/tsconfigs/samples.json",
33
"compilerOptions": {
44
"paths": {
5-
"@azure/arm-managementgroups": [
6-
"../dist/esm"
7-
]
5+
"@azure/arm-managementgroups": ["../dist/esm"]
86
}
97
}
108
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"extends": "../../../../eng/tsconfigs/src.browser.json",
3-
"include": [
4-
"../src/index.ts"
5-
]
3+
"include": ["../src/index.ts"]
64
}

0 commit comments

Comments
 (0)