Skip to content

Commit 83def49

Browse files
author
SDKAuto
committed
CodeGen from PR 28259 in Azure/azure-rest-api-specs
Merge bca9ac1e9d40cafbd1d878b70d88bc05692f00d3 into 8d6f30424e2667112c888118ac6facc2f639370e
1 parent 4668df4 commit 83def49

File tree

277 files changed

+7185
-13473
lines changed

Some content is hidden

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

277 files changed

+7185
-13473
lines changed

sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.9 (Unreleased)
3+
## 1.0.0-beta.1 (2024-03-20)
4+
5+
- Azure Resource Manager SignalR client library for Java. This package contains Microsoft Azure SDK for SignalR Management SDK. REST API for Azure SignalR Service. Package tag package-2024-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager SignalR client library for Java.
44

5-
This package contains Microsoft Azure SDK for SignalR Management SDK. REST API for Azure SignalR Service. Package tag package-2023-08-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for SignalR Management SDK. REST API for Azure SignalR Service. Package tag package-2024-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-signalr</artifactId>
35-
<version>1.0.0-beta.8</version>
35+
<version>1.0.0-beta.9</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md

Lines changed: 471 additions & 380 deletions
Large diffs are not rendered by default.

sdk/signalr/azure-resourcemanager-signalr/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for SignalR Management</name>
21-
<description>This package contains Microsoft Azure SDK for SignalR Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure SignalR Service. Package tag package-2023-08-01-preview.</description>
21+
<description>This package contains Microsoft Azure SDK for SignalR Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure SignalR Service. Package tag package-2024-01-01-preview.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -88,8 +88,6 @@
8888
<version>4.11.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
8989
<scope>test</scope>
9090
</dependency>
91-
<!-- bytebuddy dependencies are required for mockito 4.11.0 to work with Java 21. Mockito 4.11.0 is the last release -->
92-
<!-- of Mockito supporting Java 8 as a baseline. -->
9391
<dependency>
9492
<groupId>net.bytebuddy</groupId>
9593
<artifactId>byte-buddy</artifactId>

sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/SignalRManager.java

Lines changed: 65 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.azure.resourcemanager.signalr.implementation.SignalRManagementClientBuilder;
3131
import com.azure.resourcemanager.signalr.implementation.SignalRPrivateEndpointConnectionsImpl;
3232
import com.azure.resourcemanager.signalr.implementation.SignalRPrivateLinkResourcesImpl;
33+
import com.azure.resourcemanager.signalr.implementation.SignalRReplicaSharedPrivateLinkResourcesImpl;
3334
import com.azure.resourcemanager.signalr.implementation.SignalRReplicasImpl;
3435
import com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesImpl;
3536
import com.azure.resourcemanager.signalr.implementation.SignalRsImpl;
@@ -39,6 +40,7 @@
3940
import com.azure.resourcemanager.signalr.models.SignalRCustomDomains;
4041
import com.azure.resourcemanager.signalr.models.SignalRPrivateEndpointConnections;
4142
import com.azure.resourcemanager.signalr.models.SignalRPrivateLinkResources;
43+
import com.azure.resourcemanager.signalr.models.SignalRReplicaSharedPrivateLinkResources;
4244
import com.azure.resourcemanager.signalr.models.SignalRReplicas;
4345
import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources;
4446
import com.azure.resourcemanager.signalr.models.SignalRs;
@@ -50,7 +52,10 @@
5052
import java.util.Objects;
5153
import java.util.stream.Collectors;
5254

53-
/** Entry point to SignalRManager. REST API for Azure SignalR Service. */
55+
/**
56+
* Entry point to SignalRManager.
57+
* REST API for Azure SignalR Service.
58+
*/
5459
public final class SignalRManager {
5560
private Operations operations;
5661

@@ -68,25 +73,23 @@ public final class SignalRManager {
6873

6974
private SignalRReplicas signalRReplicas;
7075

76+
private SignalRReplicaSharedPrivateLinkResources signalRReplicaSharedPrivateLinkResources;
77+
7178
private SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources;
7279

7380
private final SignalRManagementClient clientObject;
7481

7582
private SignalRManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
7683
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
7784
Objects.requireNonNull(profile, "'profile' cannot be null.");
78-
this.clientObject =
79-
new SignalRManagementClientBuilder()
80-
.pipeline(httpPipeline)
81-
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
82-
.subscriptionId(profile.getSubscriptionId())
83-
.defaultPollInterval(defaultPollInterval)
84-
.buildClient();
85+
this.clientObject = new SignalRManagementClientBuilder().pipeline(httpPipeline)
86+
.endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
87+
.defaultPollInterval(defaultPollInterval).buildClient();
8588
}
8689

8790
/**
8891
* Creates an instance of SignalR service API entry point.
89-
*
92+
*
9093
* @param credential the credential to use.
9194
* @param profile the Azure profile for client.
9295
* @return the SignalR service API instance.
@@ -99,7 +102,7 @@ public static SignalRManager authenticate(TokenCredential credential, AzureProfi
99102

100103
/**
101104
* Creates an instance of SignalR service API entry point.
102-
*
105+
*
103106
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
104107
* @param profile the Azure profile for client.
105108
* @return the SignalR service API instance.
@@ -112,14 +115,16 @@ public static SignalRManager authenticate(HttpPipeline httpPipeline, AzureProfil
112115

113116
/**
114117
* Gets a Configurable instance that can be used to create SignalRManager with optional configuration.
115-
*
118+
*
116119
* @return the Configurable instance allowing configurations.
117120
*/
118121
public static Configurable configure() {
119122
return new SignalRManager.Configurable();
120123
}
121124

122-
/** The Configurable allowing configurations to be set. */
125+
/**
126+
* The Configurable allowing configurations to be set.
127+
*/
123128
public static final class Configurable {
124129
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
125130

@@ -191,8 +196,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
191196

192197
/**
193198
* Sets the retry options for the HTTP pipeline retry policy.
194-
*
195-
* <p>This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
199+
* <p>
200+
* This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
196201
*
197202
* @param retryOptions the retry options for the HTTP pipeline retry policy.
198203
* @return the configurable object itself.
@@ -209,8 +214,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
209214
* @return the configurable object itself.
210215
*/
211216
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
212-
this.defaultPollInterval =
213-
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
217+
this.defaultPollInterval
218+
= Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
214219
if (this.defaultPollInterval.isNegative()) {
215220
throw LOGGER
216221
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -230,21 +235,12 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
230235
Objects.requireNonNull(profile, "'profile' cannot be null.");
231236

232237
StringBuilder userAgentBuilder = new StringBuilder();
233-
userAgentBuilder
234-
.append("azsdk-java")
235-
.append("-")
236-
.append("com.azure.resourcemanager.signalr")
237-
.append("/")
238-
.append("1.0.0-beta.8");
238+
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.signalr").append("/")
239+
.append("1.0.0-beta.1");
239240
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
240-
userAgentBuilder
241-
.append(" (")
242-
.append(Configuration.getGlobalConfiguration().get("java.version"))
243-
.append("; ")
244-
.append(Configuration.getGlobalConfiguration().get("os.name"))
245-
.append("; ")
246-
.append(Configuration.getGlobalConfiguration().get("os.version"))
247-
.append("; auto-generated)");
241+
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
242+
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
243+
.append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
248244
} else {
249245
userAgentBuilder.append(" (auto-generated)");
250246
}
@@ -263,38 +259,25 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
263259
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
264260
policies.add(new AddHeadersFromContextPolicy());
265261
policies.add(new RequestIdPolicy());
266-
policies
267-
.addAll(
268-
this
269-
.policies
270-
.stream()
271-
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
272-
.collect(Collectors.toList()));
262+
policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
263+
.collect(Collectors.toList()));
273264
HttpPolicyProviders.addBeforeRetryPolicies(policies);
274265
policies.add(retryPolicy);
275266
policies.add(new AddDatePolicy());
276267
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
277-
policies
278-
.addAll(
279-
this
280-
.policies
281-
.stream()
282-
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
283-
.collect(Collectors.toList()));
268+
policies.addAll(this.policies.stream()
269+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
284270
HttpPolicyProviders.addAfterRetryPolicies(policies);
285271
policies.add(new HttpLoggingPolicy(httpLogOptions));
286-
HttpPipeline httpPipeline =
287-
new HttpPipelineBuilder()
288-
.httpClient(httpClient)
289-
.policies(policies.toArray(new HttpPipelinePolicy[0]))
290-
.build();
272+
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
273+
.policies(policies.toArray(new HttpPipelinePolicy[0])).build();
291274
return new SignalRManager(httpPipeline, profile, defaultPollInterval);
292275
}
293276
}
294277

295278
/**
296279
* Gets the resource collection API of Operations.
297-
*
280+
*
298281
* @return Resource collection API of Operations.
299282
*/
300283
public Operations operations() {
@@ -306,7 +289,7 @@ public Operations operations() {
306289

307290
/**
308291
* Gets the resource collection API of SignalRs. It manages SignalRResource.
309-
*
292+
*
310293
* @return Resource collection API of SignalRs.
311294
*/
312295
public SignalRs signalRs() {
@@ -318,7 +301,7 @@ public SignalRs signalRs() {
318301

319302
/**
320303
* Gets the resource collection API of Usages.
321-
*
304+
*
322305
* @return Resource collection API of Usages.
323306
*/
324307
public Usages usages() {
@@ -330,20 +313,20 @@ public Usages usages() {
330313

331314
/**
332315
* Gets the resource collection API of SignalRCustomCertificates. It manages CustomCertificate.
333-
*
316+
*
334317
* @return Resource collection API of SignalRCustomCertificates.
335318
*/
336319
public SignalRCustomCertificates signalRCustomCertificates() {
337320
if (this.signalRCustomCertificates == null) {
338-
this.signalRCustomCertificates =
339-
new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this);
321+
this.signalRCustomCertificates
322+
= new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this);
340323
}
341324
return signalRCustomCertificates;
342325
}
343326

344327
/**
345328
* Gets the resource collection API of SignalRCustomDomains. It manages CustomDomain.
346-
*
329+
*
347330
* @return Resource collection API of SignalRCustomDomains.
348331
*/
349332
public SignalRCustomDomains signalRCustomDomains() {
@@ -355,33 +338,33 @@ public SignalRCustomDomains signalRCustomDomains() {
355338

356339
/**
357340
* Gets the resource collection API of SignalRPrivateEndpointConnections.
358-
*
341+
*
359342
* @return Resource collection API of SignalRPrivateEndpointConnections.
360343
*/
361344
public SignalRPrivateEndpointConnections signalRPrivateEndpointConnections() {
362345
if (this.signalRPrivateEndpointConnections == null) {
363-
this.signalRPrivateEndpointConnections =
364-
new SignalRPrivateEndpointConnectionsImpl(clientObject.getSignalRPrivateEndpointConnections(), this);
346+
this.signalRPrivateEndpointConnections
347+
= new SignalRPrivateEndpointConnectionsImpl(clientObject.getSignalRPrivateEndpointConnections(), this);
365348
}
366349
return signalRPrivateEndpointConnections;
367350
}
368351

369352
/**
370353
* Gets the resource collection API of SignalRPrivateLinkResources.
371-
*
354+
*
372355
* @return Resource collection API of SignalRPrivateLinkResources.
373356
*/
374357
public SignalRPrivateLinkResources signalRPrivateLinkResources() {
375358
if (this.signalRPrivateLinkResources == null) {
376-
this.signalRPrivateLinkResources =
377-
new SignalRPrivateLinkResourcesImpl(clientObject.getSignalRPrivateLinkResources(), this);
359+
this.signalRPrivateLinkResources
360+
= new SignalRPrivateLinkResourcesImpl(clientObject.getSignalRPrivateLinkResources(), this);
378361
}
379362
return signalRPrivateLinkResources;
380363
}
381364

382365
/**
383366
* Gets the resource collection API of SignalRReplicas. It manages Replica.
384-
*
367+
*
385368
* @return Resource collection API of SignalRReplicas.
386369
*/
387370
public SignalRReplicas signalRReplicas() {
@@ -392,22 +375,36 @@ public SignalRReplicas signalRReplicas() {
392375
}
393376

394377
/**
395-
* Gets the resource collection API of SignalRSharedPrivateLinkResources. It manages SharedPrivateLinkResource.
396-
*
378+
* Gets the resource collection API of SignalRReplicaSharedPrivateLinkResources. It manages
379+
* SharedPrivateLinkResource.
380+
*
381+
* @return Resource collection API of SignalRReplicaSharedPrivateLinkResources.
382+
*/
383+
public SignalRReplicaSharedPrivateLinkResources signalRReplicaSharedPrivateLinkResources() {
384+
if (this.signalRReplicaSharedPrivateLinkResources == null) {
385+
this.signalRReplicaSharedPrivateLinkResources = new SignalRReplicaSharedPrivateLinkResourcesImpl(
386+
clientObject.getSignalRReplicaSharedPrivateLinkResources(), this);
387+
}
388+
return signalRReplicaSharedPrivateLinkResources;
389+
}
390+
391+
/**
392+
* Gets the resource collection API of SignalRSharedPrivateLinkResources.
393+
*
397394
* @return Resource collection API of SignalRSharedPrivateLinkResources.
398395
*/
399396
public SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources() {
400397
if (this.signalRSharedPrivateLinkResources == null) {
401-
this.signalRSharedPrivateLinkResources =
402-
new SignalRSharedPrivateLinkResourcesImpl(clientObject.getSignalRSharedPrivateLinkResources(), this);
398+
this.signalRSharedPrivateLinkResources
399+
= new SignalRSharedPrivateLinkResourcesImpl(clientObject.getSignalRSharedPrivateLinkResources(), this);
403400
}
404401
return signalRSharedPrivateLinkResources;
405402
}
406403

407404
/**
408405
* Gets wrapped service client SignalRManagementClient providing direct access to the underlying auto-generated API
409406
* implementation, based on Azure REST API.
410-
*
407+
*
411408
* @return Wrapped service client SignalRManagementClient.
412409
*/
413410
public SignalRManagementClient serviceClient() {

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
import com.azure.core.util.Context;
1111
import com.azure.resourcemanager.signalr.fluent.models.OperationInner;
1212

13-
/** An instance of this class provides access to all the operations defined in OperationsClient. */
13+
/**
14+
* An instance of this class provides access to all the operations defined in OperationsClient.
15+
*/
1416
public interface OperationsClient {
1517
/**
1618
* Lists all of the available REST API operations of the Microsoft.SignalRService provider.
17-
*
19+
*
1820
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
1921
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2022
* @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
@@ -24,7 +26,7 @@ public interface OperationsClient {
2426

2527
/**
2628
* Lists all of the available REST API operations of the Microsoft.SignalRService provider.
27-
*
29+
*
2830
* @param context The context to associate with this operation.
2931
* @throws IllegalArgumentException thrown if parameters fail the validation.
3032
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.

0 commit comments

Comments
 (0)