Skip to content

Commit 7b33c47

Browse files
author
SDKAuto
committed
CodeGen from PR 29086 in Azure/azure-rest-api-specs
Merge bcd6b6d50466b2ff9ec8d499ad52afaf28ff9657 into f2b603440c0c890cbaf6ddb1e6976bfcf14aa495
1 parent bca73d9 commit 7b33c47

File tree

277 files changed

+7092
-13387
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

+7092
-13387
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-05-23)
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-03-01. 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-03-01. 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: 394 additions & 330 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 4 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-03-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>com.azure</groupId>
6363
<artifactId>azure-core-test</artifactId>
64-
<version>1.26.0-beta.1</version> <!-- {x-version-update;unreleased_com.azure:azure-core-test;dependency} -->
64+
<version>1.25.0</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
6565
<scope>test</scope>
6666
</dependency>
6767
<dependency>
@@ -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: 70 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import com.azure.core.http.HttpPipelinePosition;
1212
import com.azure.core.http.policy.AddDatePolicy;
1313
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
14-
import com.azure.core.http.policy.HttpLogOptions;
1514
import com.azure.core.http.policy.HttpLoggingPolicy;
15+
import com.azure.core.http.policy.HttpLogOptions;
1616
import com.azure.core.http.policy.HttpPipelinePolicy;
1717
import com.azure.core.http.policy.HttpPolicyProviders;
1818
import com.azure.core.http.policy.RequestIdPolicy;
@@ -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;
@@ -40,8 +41,9 @@
4041
import com.azure.resourcemanager.signalr.models.SignalRPrivateEndpointConnections;
4142
import com.azure.resourcemanager.signalr.models.SignalRPrivateLinkResources;
4243
import com.azure.resourcemanager.signalr.models.SignalRReplicas;
43-
import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources;
44+
import com.azure.resourcemanager.signalr.models.SignalRReplicaSharedPrivateLinkResources;
4445
import com.azure.resourcemanager.signalr.models.SignalRs;
46+
import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources;
4547
import com.azure.resourcemanager.signalr.models.Usages;
4648
import java.time.Duration;
4749
import java.time.temporal.ChronoUnit;
@@ -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,25 @@ 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())
87+
.subscriptionId(profile.getSubscriptionId())
88+
.defaultPollInterval(defaultPollInterval)
89+
.buildClient();
8590
}
8691

8792
/**
8893
* Creates an instance of SignalR service API entry point.
89-
*
94+
*
9095
* @param credential the credential to use.
9196
* @param profile the Azure profile for client.
9297
* @return the SignalR service API instance.
@@ -99,7 +104,7 @@ public static SignalRManager authenticate(TokenCredential credential, AzureProfi
99104

100105
/**
101106
* Creates an instance of SignalR service API entry point.
102-
*
107+
*
103108
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
104109
* @param profile the Azure profile for client.
105110
* @return the SignalR service API instance.
@@ -112,14 +117,16 @@ public static SignalRManager authenticate(HttpPipeline httpPipeline, AzureProfil
112117

113118
/**
114119
* Gets a Configurable instance that can be used to create SignalRManager with optional configuration.
115-
*
120+
*
116121
* @return the Configurable instance allowing configurations.
117122
*/
118123
public static Configurable configure() {
119124
return new SignalRManager.Configurable();
120125
}
121126

122-
/** The Configurable allowing configurations to be set. */
127+
/**
128+
* The Configurable allowing configurations to be set.
129+
*/
123130
public static final class Configurable {
124131
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
125132

@@ -191,8 +198,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
191198

192199
/**
193200
* 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)}.
201+
* <p>
202+
* This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
196203
*
197204
* @param retryOptions the retry options for the HTTP pipeline retry policy.
198205
* @return the configurable object itself.
@@ -209,8 +216,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
209216
* @return the configurable object itself.
210217
*/
211218
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
212-
this.defaultPollInterval =
213-
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
219+
this.defaultPollInterval
220+
= Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
214221
if (this.defaultPollInterval.isNegative()) {
215222
throw LOGGER
216223
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -230,15 +237,13 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
230237
Objects.requireNonNull(profile, "'profile' cannot be null.");
231238

232239
StringBuilder userAgentBuilder = new StringBuilder();
233-
userAgentBuilder
234-
.append("azsdk-java")
240+
userAgentBuilder.append("azsdk-java")
235241
.append("-")
236242
.append("com.azure.resourcemanager.signalr")
237243
.append("/")
238-
.append("1.0.0-beta.8");
244+
.append("1.0.0-beta.1");
239245
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
240-
userAgentBuilder
241-
.append(" (")
246+
userAgentBuilder.append(" (")
242247
.append(Configuration.getGlobalConfiguration().get("java.version"))
243248
.append("; ")
244249
.append(Configuration.getGlobalConfiguration().get("os.name"))
@@ -263,38 +268,28 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
263268
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
264269
policies.add(new AddHeadersFromContextPolicy());
265270
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()));
271+
policies.addAll(this.policies.stream()
272+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
273+
.collect(Collectors.toList()));
273274
HttpPolicyProviders.addBeforeRetryPolicies(policies);
274275
policies.add(retryPolicy);
275276
policies.add(new AddDatePolicy());
276277
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()));
278+
policies.addAll(this.policies.stream()
279+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
280+
.collect(Collectors.toList()));
284281
HttpPolicyProviders.addAfterRetryPolicies(policies);
285282
policies.add(new HttpLoggingPolicy(httpLogOptions));
286-
HttpPipeline httpPipeline =
287-
new HttpPipelineBuilder()
288-
.httpClient(httpClient)
289-
.policies(policies.toArray(new HttpPipelinePolicy[0]))
290-
.build();
283+
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
284+
.policies(policies.toArray(new HttpPipelinePolicy[0]))
285+
.build();
291286
return new SignalRManager(httpPipeline, profile, defaultPollInterval);
292287
}
293288
}
294289

295290
/**
296291
* Gets the resource collection API of Operations.
297-
*
292+
*
298293
* @return Resource collection API of Operations.
299294
*/
300295
public Operations operations() {
@@ -306,7 +301,7 @@ public Operations operations() {
306301

307302
/**
308303
* Gets the resource collection API of SignalRs. It manages SignalRResource.
309-
*
304+
*
310305
* @return Resource collection API of SignalRs.
311306
*/
312307
public SignalRs signalRs() {
@@ -318,7 +313,7 @@ public SignalRs signalRs() {
318313

319314
/**
320315
* Gets the resource collection API of Usages.
321-
*
316+
*
322317
* @return Resource collection API of Usages.
323318
*/
324319
public Usages usages() {
@@ -330,20 +325,20 @@ public Usages usages() {
330325

331326
/**
332327
* Gets the resource collection API of SignalRCustomCertificates. It manages CustomCertificate.
333-
*
328+
*
334329
* @return Resource collection API of SignalRCustomCertificates.
335330
*/
336331
public SignalRCustomCertificates signalRCustomCertificates() {
337332
if (this.signalRCustomCertificates == null) {
338-
this.signalRCustomCertificates =
339-
new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this);
333+
this.signalRCustomCertificates
334+
= new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this);
340335
}
341336
return signalRCustomCertificates;
342337
}
343338

344339
/**
345340
* Gets the resource collection API of SignalRCustomDomains. It manages CustomDomain.
346-
*
341+
*
347342
* @return Resource collection API of SignalRCustomDomains.
348343
*/
349344
public SignalRCustomDomains signalRCustomDomains() {
@@ -355,33 +350,33 @@ public SignalRCustomDomains signalRCustomDomains() {
355350

356351
/**
357352
* Gets the resource collection API of SignalRPrivateEndpointConnections.
358-
*
353+
*
359354
* @return Resource collection API of SignalRPrivateEndpointConnections.
360355
*/
361356
public SignalRPrivateEndpointConnections signalRPrivateEndpointConnections() {
362357
if (this.signalRPrivateEndpointConnections == null) {
363-
this.signalRPrivateEndpointConnections =
364-
new SignalRPrivateEndpointConnectionsImpl(clientObject.getSignalRPrivateEndpointConnections(), this);
358+
this.signalRPrivateEndpointConnections
359+
= new SignalRPrivateEndpointConnectionsImpl(clientObject.getSignalRPrivateEndpointConnections(), this);
365360
}
366361
return signalRPrivateEndpointConnections;
367362
}
368363

369364
/**
370365
* Gets the resource collection API of SignalRPrivateLinkResources.
371-
*
366+
*
372367
* @return Resource collection API of SignalRPrivateLinkResources.
373368
*/
374369
public SignalRPrivateLinkResources signalRPrivateLinkResources() {
375370
if (this.signalRPrivateLinkResources == null) {
376-
this.signalRPrivateLinkResources =
377-
new SignalRPrivateLinkResourcesImpl(clientObject.getSignalRPrivateLinkResources(), this);
371+
this.signalRPrivateLinkResources
372+
= new SignalRPrivateLinkResourcesImpl(clientObject.getSignalRPrivateLinkResources(), this);
378373
}
379374
return signalRPrivateLinkResources;
380375
}
381376

382377
/**
383378
* Gets the resource collection API of SignalRReplicas. It manages Replica.
384-
*
379+
*
385380
* @return Resource collection API of SignalRReplicas.
386381
*/
387382
public SignalRReplicas signalRReplicas() {
@@ -392,22 +387,36 @@ public SignalRReplicas signalRReplicas() {
392387
}
393388

394389
/**
395-
* Gets the resource collection API of SignalRSharedPrivateLinkResources. It manages SharedPrivateLinkResource.
396-
*
390+
* Gets the resource collection API of SignalRReplicaSharedPrivateLinkResources. It manages
391+
* SharedPrivateLinkResource.
392+
*
393+
* @return Resource collection API of SignalRReplicaSharedPrivateLinkResources.
394+
*/
395+
public SignalRReplicaSharedPrivateLinkResources signalRReplicaSharedPrivateLinkResources() {
396+
if (this.signalRReplicaSharedPrivateLinkResources == null) {
397+
this.signalRReplicaSharedPrivateLinkResources = new SignalRReplicaSharedPrivateLinkResourcesImpl(
398+
clientObject.getSignalRReplicaSharedPrivateLinkResources(), this);
399+
}
400+
return signalRReplicaSharedPrivateLinkResources;
401+
}
402+
403+
/**
404+
* Gets the resource collection API of SignalRSharedPrivateLinkResources.
405+
*
397406
* @return Resource collection API of SignalRSharedPrivateLinkResources.
398407
*/
399408
public SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources() {
400409
if (this.signalRSharedPrivateLinkResources == null) {
401-
this.signalRSharedPrivateLinkResources =
402-
new SignalRSharedPrivateLinkResourcesImpl(clientObject.getSignalRSharedPrivateLinkResources(), this);
410+
this.signalRSharedPrivateLinkResources
411+
= new SignalRSharedPrivateLinkResourcesImpl(clientObject.getSignalRSharedPrivateLinkResources(), this);
403412
}
404413
return signalRSharedPrivateLinkResources;
405414
}
406415

407416
/**
408417
* Gets wrapped service client SignalRManagementClient providing direct access to the underlying auto-generated API
409418
* implementation, based on Azure REST API.
410-
*
419+
*
411420
* @return Wrapped service client SignalRManagementClient.
412421
*/
413422
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)