Skip to content

Commit 99c4d25

Browse files
authored
sync typespec 7629, prepare autorest.java release (#3137)
* sync core * update package.json * sync tests * sync core to main
1 parent 9a1a39c commit 99c4d25

12 files changed

+643
-4
lines changed

core

Submodule core updated 25 files

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autorest/java",
3-
"version": "4.1.51",
3+
"version": "4.1.52",
44
"description": "The Java extension for classic generators in AutoRest.",
55
"scripts": {
66
"autorest": "autorest",

typespec-tests/src/main/java/tsptest/armresourceprovider/fluent/ManagedMaintenanceWindowStatusOperationsClient.java

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
import com.azure.core.annotation.ReturnType;
88
import com.azure.core.annotation.ServiceMethod;
99
import com.azure.core.http.rest.Response;
10+
import com.azure.core.management.polling.PollResult;
1011
import com.azure.core.util.Context;
12+
import com.azure.core.util.polling.SyncPoller;
1113
import tsptest.armresourceprovider.fluent.models.ManagedMaintenanceWindowStatusInner;
1214

1315
/**
@@ -43,4 +45,63 @@ Response<ManagedMaintenanceWindowStatusInner> getByResourceGroupWithResponse(Str
4345
@ServiceMethod(returns = ReturnType.SINGLE)
4446
ManagedMaintenanceWindowStatusInner getByResourceGroup(String resourceGroupName,
4547
String managedMaintenanceWindowStatusContentName);
48+
49+
/**
50+
* Delete a ManagedMaintenanceWindowStatusContent.
51+
*
52+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
53+
* @param managedMaintenanceWindowStatusContentName The name of the ManagedMaintenanceWindowStatusContent.
54+
* @throws IllegalArgumentException thrown if parameters fail the validation.
55+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
56+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57+
* @return the {@link SyncPoller} for polling of long-running operation.
58+
*/
59+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
60+
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName,
61+
String managedMaintenanceWindowStatusContentName);
62+
63+
/**
64+
* Delete a ManagedMaintenanceWindowStatusContent.
65+
*
66+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
67+
* @param managedMaintenanceWindowStatusContentName The name of the ManagedMaintenanceWindowStatusContent.
68+
* @param ifMatch The request should only proceed if an entity matches this string.
69+
* @param ifNoneMatch The request should only proceed if no entity matches this string.
70+
* @param context The context to associate with this operation.
71+
* @throws IllegalArgumentException thrown if parameters fail the validation.
72+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
73+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
74+
* @return the {@link SyncPoller} for polling of long-running operation.
75+
*/
76+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
77+
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName,
78+
String managedMaintenanceWindowStatusContentName, String ifMatch, String ifNoneMatch, Context context);
79+
80+
/**
81+
* Delete a ManagedMaintenanceWindowStatusContent.
82+
*
83+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
84+
* @param managedMaintenanceWindowStatusContentName The name of the ManagedMaintenanceWindowStatusContent.
85+
* @throws IllegalArgumentException thrown if parameters fail the validation.
86+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
87+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
88+
*/
89+
@ServiceMethod(returns = ReturnType.SINGLE)
90+
void delete(String resourceGroupName, String managedMaintenanceWindowStatusContentName);
91+
92+
/**
93+
* Delete a ManagedMaintenanceWindowStatusContent.
94+
*
95+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
96+
* @param managedMaintenanceWindowStatusContentName The name of the ManagedMaintenanceWindowStatusContent.
97+
* @param ifMatch The request should only proceed if an entity matches this string.
98+
* @param ifNoneMatch The request should only proceed if no entity matches this string.
99+
* @param context The context to associate with this operation.
100+
* @throws IllegalArgumentException thrown if parameters fail the validation.
101+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
102+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
103+
*/
104+
@ServiceMethod(returns = ReturnType.SINGLE)
105+
void delete(String resourceGroupName, String managedMaintenanceWindowStatusContentName, String ifMatch,
106+
String ifNoneMatch, Context context);
46107
}

typespec-tests/src/main/java/tsptest/armresourceprovider/fluent/ModelInterfaceSameNamesClient.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,33 @@ Response<ModelInterfaceSameNameInner> getByResourceGroupWithResponse(String reso
4141
*/
4242
@ServiceMethod(returns = ReturnType.SINGLE)
4343
ModelInterfaceSameNameInner getByResourceGroup(String resourceGroupName, String modelInterfaceDifferentNameName);
44+
45+
/**
46+
* Delete a ModelInterfaceDifferentName.
47+
*
48+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
49+
* @param modelInterfaceDifferentNameName The name of the ModelInterfaceDifferentName.
50+
* @param ifMatch The request should only proceed if an entity matches this string.
51+
* @param ifNoneMatch The request should only proceed if no entity matches this string.
52+
* @param context The context to associate with this operation.
53+
* @throws IllegalArgumentException thrown if parameters fail the validation.
54+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
55+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
56+
* @return the {@link Response}.
57+
*/
58+
@ServiceMethod(returns = ReturnType.SINGLE)
59+
Response<Void> deleteWithResponse(String resourceGroupName, String modelInterfaceDifferentNameName, String ifMatch,
60+
String ifNoneMatch, Context context);
61+
62+
/**
63+
* Delete a ModelInterfaceDifferentName.
64+
*
65+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
66+
* @param modelInterfaceDifferentNameName The name of the ModelInterfaceDifferentName.
67+
* @throws IllegalArgumentException thrown if parameters fail the validation.
68+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
69+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
70+
*/
71+
@ServiceMethod(returns = ReturnType.SINGLE)
72+
void delete(String resourceGroupName, String modelInterfaceDifferentNameName);
4473
}

0 commit comments

Comments
 (0)