Skip to content

Commit f51a113

Browse files
[MSI] Regenerate SDK from TypeSpec (#48767)
* Regenerate MSI SDK from TypeSpec with revapi suppressions - Updated module-info.java to open implementation.models to azure.core - Added revapi suppressions for ListResult class removals, OperationDisplay constructor/setter changes - New models: AssignmentRestrictions, ClaimsMatchingExpression, SystemAssignedIdentityProperties Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * record --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a8e02c1 commit f51a113

48 files changed

Lines changed: 1723 additions & 1035 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/lintingconfigs/revapi/track2/revapi.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,30 @@
16361636
"code": "java.class.removed",
16371637
"old" : "class com.azure.resourcemanager.servicebus.models.SqlRuleAction",
16381638
"justification": "SqlRuleAction was a redundant Swagger allOf wrapper around Action with no extra properties. TypeSpec correctly simplified to single Action model."
1639+
},
1640+
{
1641+
"code": "java.class.removed",
1642+
"old" : {
1643+
"matcher": "regex",
1644+
"match": "class com\\.azure\\.resourcemanager\\.msi\\.models\\..*(ListResult|List)"
1645+
},
1646+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
1647+
},
1648+
{
1649+
"code": "java.method.visibilityReduced",
1650+
"old" : {
1651+
"matcher": "regex",
1652+
"match": "method void com\\.azure\\.resourcemanager\\.msi\\.models\\.OperationDisplay\\:\\:\\<init\\>\\(\\)"
1653+
},
1654+
"justification": "Output-only immutable models' constructors are now private."
1655+
},
1656+
{
1657+
"code": "java.method.removed",
1658+
"old" : {
1659+
"matcher": "regex",
1660+
"match": "method .* com\\.azure\\.resourcemanager\\.msi\\.models\\.OperationDisplay\\:\\:with.*\\(.*\\).*"
1661+
},
1662+
"justification": "Output-only immutable models' setters are removed if no explicit usage."
16391663
}
16401664
]
16411665
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
1818
<dependency>
1919
<groupId>com.azure.resourcemanager</groupId>
2020
<artifactId>azure-resourcemanager-msi</artifactId>
21-
<version>2.53.1</version>
21+
<version>2.54.0-beta.1</version>
2222
</dependency>
2323
```
2424
[//]: # ({x-version-update-end})

sdk/msi/azure-resourcemanager-msi/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": "java",
44
"TagPrefix": "java/msi/azure-resourcemanager-msi",
5-
"Tag": "java/msi/azure-resourcemanager-msi_dd4ddd6b42"
5+
"Tag": "java/msi/azure-resourcemanager-msi_724352cc95"
66
}

sdk/msi/azure-resourcemanager-msi/src/main/java/com/azure/resourcemanager/msi/fluent/FederatedIdentityCredentialsClient.java

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 20 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.msi.fluent;
66

@@ -12,26 +12,26 @@
1212
*/
1313
public interface ManagedServiceIdentityClient {
1414
/**
15-
* Gets The Id of the Subscription to which the identity belongs.
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
*
@@ -46,13 +46,6 @@ public interface ManagedServiceIdentityClient {
4646
*/
4747
Duration getDefaultPollInterval();
4848

49-
/**
50-
* Gets the SystemAssignedIdentitiesClient object to access its operations.
51-
*
52-
* @return the SystemAssignedIdentitiesClient object.
53-
*/
54-
SystemAssignedIdentitiesClient getSystemAssignedIdentities();
55-
5649
/**
5750
* Gets the OperationsClient object to access its operations.
5851
*
@@ -61,16 +54,23 @@ public interface ManagedServiceIdentityClient {
6154
OperationsClient getOperations();
6255

6356
/**
64-
* Gets the UserAssignedIdentitiesClient object to access its operations.
57+
* Gets the SystemAssignedIdentitiesClient object to access its operations.
6558
*
66-
* @return the UserAssignedIdentitiesClient object.
59+
* @return the SystemAssignedIdentitiesClient object.
6760
*/
68-
UserAssignedIdentitiesClient getUserAssignedIdentities();
61+
SystemAssignedIdentitiesClient getSystemAssignedIdentities();
6962

7063
/**
7164
* Gets the FederatedIdentityCredentialsClient object to access its operations.
7265
*
7366
* @return the FederatedIdentityCredentialsClient object.
7467
*/
7568
FederatedIdentityCredentialsClient getFederatedIdentityCredentials();
69+
70+
/**
71+
* Gets the UserAssignedIdentitiesClient object to access its operations.
72+
*
73+
* @return the UserAssignedIdentitiesClient object.
74+
*/
75+
UserAssignedIdentitiesClient getUserAssignedIdentities();
7676
}

sdk/msi/azure-resourcemanager-msi/src/main/java/com/azure/resourcemanager/msi/fluent/OperationsClient.java

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

@@ -16,7 +16,7 @@
1616
*/
1717
public interface OperationsClient {
1818
/**
19-
* Lists available operations for the Microsoft.ManagedIdentity provider.
19+
* List the operations for the provider.
2020
*
2121
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2222
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -26,7 +26,7 @@ public interface OperationsClient {
2626
PagedFlux<OperationInner> listAsync();
2727

2828
/**
29-
* Lists available operations for the Microsoft.ManagedIdentity provider.
29+
* List the operations for the provider.
3030
*
3131
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3232
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -36,7 +36,7 @@ public interface OperationsClient {
3636
PagedIterable<OperationInner> list();
3737

3838
/**
39-
* Lists available operations for the Microsoft.ManagedIdentity provider.
39+
* List the operations for the provider.
4040
*
4141
* @param context The context to associate with this operation.
4242
* @throws IllegalArgumentException thrown if parameters fail the validation.

sdk/msi/azure-resourcemanager-msi/src/main/java/com/azure/resourcemanager/msi/fluent/SystemAssignedIdentitiesClient.java

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

@@ -18,7 +18,7 @@ public interface SystemAssignedIdentitiesClient {
1818
/**
1919
* Gets the systemAssignedIdentity available under the specified RP scope.
2020
*
21-
* @param scope The resource provider scope of the resource. Parent resource being extended by Managed Identities.
21+
* @param scope The fully qualified Azure Resource manager identifier of the resource.
2222
* @throws IllegalArgumentException thrown if parameters fail the validation.
2323
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2424
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -31,7 +31,7 @@ public interface SystemAssignedIdentitiesClient {
3131
/**
3232
* Gets the systemAssignedIdentity available under the specified RP scope.
3333
*
34-
* @param scope The resource provider scope of the resource. Parent resource being extended by Managed Identities.
34+
* @param scope The fully qualified Azure Resource manager identifier of the resource.
3535
* @throws IllegalArgumentException thrown if parameters fail the validation.
3636
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3737
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -44,7 +44,7 @@ public interface SystemAssignedIdentitiesClient {
4444
/**
4545
* Gets the systemAssignedIdentity available under the specified RP scope.
4646
*
47-
* @param scope The resource provider scope of the resource. Parent resource being extended by Managed Identities.
47+
* @param scope The fully qualified Azure Resource manager identifier of the resource.
4848
* @param context The context to associate with this operation.
4949
* @throws IllegalArgumentException thrown if parameters fail the validation.
5050
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -57,7 +57,7 @@ public interface SystemAssignedIdentitiesClient {
5757
/**
5858
* Gets the systemAssignedIdentity available under the specified RP scope.
5959
*
60-
* @param scope The resource provider scope of the resource. Parent resource being extended by Managed Identities.
60+
* @param scope The fully qualified Azure Resource manager identifier of the resource.
6161
* @throws IllegalArgumentException thrown if parameters fail the validation.
6262
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6363
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.

0 commit comments

Comments
 (0)