Skip to content

Commit fad5e4f

Browse files
authored
[Automation] Generate SDK based on TypeSpec 0.37.1 (#47418)
1 parent f20192b commit fad5e4f

File tree

159 files changed

+2711
-2177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+2711
-2177
lines changed

eng/emitter-package-lock.json

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

eng/emitter-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"main": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-java": "0.36.3"
4+
"@azure-tools/typespec-java": "0.37.1"
55
},
66
"devDependencies": {
77
"@azure-tools/typespec-autorest": "0.62.0",
88
"@azure-tools/typespec-azure-core": "0.62.0",
9-
"@azure-tools/typespec-azure-resource-manager": "0.62.0",
9+
"@azure-tools/typespec-azure-resource-manager": "0.62.1",
1010
"@azure-tools/typespec-azure-rulesets": "0.62.0",
1111
"@azure-tools/typespec-client-generator-core": "0.62.0",
1212
"@azure-tools/typespec-liftr-base": "0.11.0",

eng/scripts/Compare-CurrentToCodegeneration.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ $generateScript = {
181181
}
182182

183183
# Update code snippets before comparing the diff
184-
$mvnOutput = (& mvn --no-transfer-progress codesnippet:update-codesnippet 2>&1)
184+
# TODO: remove spotless:apply when issue fixed in emitter
185+
$mvnOutput = (& mvn --no-transfer-progress codesnippet:update-codesnippet spotless:apply 2>&1)
185186
if ($LastExitCode -ne 0) {
186187
Write-Host "$separatorBar`nError updating TypeSpec codesnippets in directory $directory`n$([String]::Join("`n", $mvnOutput))`n$separatorBar"
187188
throw

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ com.azure:azure-communication-common;1.4.4;1.5.0-beta.1
7979
com.azure:azure-communication-common-perf;1.0.0-beta.1;1.0.0-beta.1
8080
com.azure:azure-communication-email;1.1.1;1.2.0-beta.2
8181
com.azure:azure-communication-identity;1.6.9;1.7.0-beta.1
82-
com.azure:azure-communication-jobrouter;1.1.17;1.2.0-beta.1
82+
com.azure:azure-communication-jobrouter;1.1.17;2.0.0-beta.1
8383
com.azure:azure-communication-messages;1.1.8;1.2.0-beta.2
8484
com.azure:azure-communication-phonenumbers;1.4.2;1.5.0-beta.1
8585
com.azure:azure-communication-rooms;1.2.5;1.3.0-beta.1

sdk/communication/azure-communication-jobrouter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>com.azure</groupId>
1616
<artifactId>azure-communication-jobrouter</artifactId>
17-
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-jobrouter;current} -->
17+
<version>2.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-jobrouter;current} -->
1818

1919
<name>Microsoft Azure client library for Azure Communication Services JobRouter application</name>
2020
<description>

sdk/databasewatcher/azure-resourcemanager-databasewatcher/src/main/java/com/azure/resourcemanager/databasewatcher/fluent/WatchersClient.java

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginUpdate(String resourceGr
276276
* @return the {@link SyncPoller} for polling of long-running operation.
277277
*/
278278
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
279-
SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStart(String resourceGroupName, String watcherName);
279+
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String watcherName);
280280

281281
/**
282282
* The action to start monitoring all targets configured for a database watcher.
@@ -290,8 +290,7 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginUpdate(String resourceGr
290290
* @return the {@link SyncPoller} for polling of long-running operation.
291291
*/
292292
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
293-
SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStart(String resourceGroupName, String watcherName,
294-
Context context);
293+
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String watcherName, Context context);
295294

296295
/**
297296
* The action to start monitoring all targets configured for a database watcher.
@@ -301,10 +300,9 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStart(String resourceGro
301300
* @throws IllegalArgumentException thrown if parameters fail the validation.
302301
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
303302
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
304-
* @return the response.
305303
*/
306304
@ServiceMethod(returns = ReturnType.SINGLE)
307-
WatcherInner start(String resourceGroupName, String watcherName);
305+
void start(String resourceGroupName, String watcherName);
308306

309307
/**
310308
* The action to start monitoring all targets configured for a database watcher.
@@ -315,10 +313,9 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStart(String resourceGro
315313
* @throws IllegalArgumentException thrown if parameters fail the validation.
316314
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
317315
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
318-
* @return the response.
319316
*/
320317
@ServiceMethod(returns = ReturnType.SINGLE)
321-
WatcherInner start(String resourceGroupName, String watcherName, Context context);
318+
void start(String resourceGroupName, String watcherName, Context context);
322319

323320
/**
324321
* The action to stop monitoring all targets configured for a database watcher.
@@ -331,7 +328,7 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStart(String resourceGro
331328
* @return the {@link SyncPoller} for polling of long-running operation.
332329
*/
333330
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
334-
SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStop(String resourceGroupName, String watcherName);
331+
SyncPoller<PollResult<Void>, Void> beginStop(String resourceGroupName, String watcherName);
335332

336333
/**
337334
* The action to stop monitoring all targets configured for a database watcher.
@@ -345,8 +342,7 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStart(String resourceGro
345342
* @return the {@link SyncPoller} for polling of long-running operation.
346343
*/
347344
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
348-
SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStop(String resourceGroupName, String watcherName,
349-
Context context);
345+
SyncPoller<PollResult<Void>, Void> beginStop(String resourceGroupName, String watcherName, Context context);
350346

351347
/**
352348
* The action to stop monitoring all targets configured for a database watcher.
@@ -356,10 +352,9 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStop(String resourceGrou
356352
* @throws IllegalArgumentException thrown if parameters fail the validation.
357353
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
358354
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
359-
* @return the response.
360355
*/
361356
@ServiceMethod(returns = ReturnType.SINGLE)
362-
WatcherInner stop(String resourceGroupName, String watcherName);
357+
void stop(String resourceGroupName, String watcherName);
363358

364359
/**
365360
* The action to stop monitoring all targets configured for a database watcher.
@@ -370,8 +365,7 @@ SyncPoller<PollResult<WatcherInner>, WatcherInner> beginStop(String resourceGrou
370365
* @throws IllegalArgumentException thrown if parameters fail the validation.
371366
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
372367
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
373-
* @return the response.
374368
*/
375369
@ServiceMethod(returns = ReturnType.SINGLE)
376-
WatcherInner stop(String resourceGroupName, String watcherName, Context context);
370+
void stop(String resourceGroupName, String watcherName, Context context);
377371
}

sdk/databasewatcher/azure-resourcemanager-databasewatcher/src/main/java/com/azure/resourcemanager/databasewatcher/implementation/WatcherImpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,20 @@ public Watcher refresh(Context context) {
152152
return this;
153153
}
154154

155-
public Watcher start() {
156-
return serviceManager.watchers().start(resourceGroupName, watcherName);
155+
public void start() {
156+
serviceManager.watchers().start(resourceGroupName, watcherName);
157157
}
158158

159-
public Watcher start(Context context) {
160-
return serviceManager.watchers().start(resourceGroupName, watcherName, context);
159+
public void start(Context context) {
160+
serviceManager.watchers().start(resourceGroupName, watcherName, context);
161161
}
162162

163-
public Watcher stop() {
164-
return serviceManager.watchers().stop(resourceGroupName, watcherName);
163+
public void stop() {
164+
serviceManager.watchers().stop(resourceGroupName, watcherName);
165165
}
166166

167-
public Watcher stop(Context context) {
168-
return serviceManager.watchers().stop(resourceGroupName, watcherName, context);
167+
public void stop(Context context) {
168+
serviceManager.watchers().stop(resourceGroupName, watcherName, context);
169169
}
170170

171171
public WatcherImpl withRegion(Region location) {

0 commit comments

Comments
 (0)