Skip to content

Commit d5b4abb

Browse files
author
SDKAuto
committed
CodeGen from PR 16044 in Azure/azure-rest-api-specs
Merge 5c37c5d6128703f24ed1e3911c81da23d3292964 into 287a3b54c9167c810455b7ed4afa295e162a0f18
1 parent b511bc6 commit d5b4abb

File tree

62 files changed

+2935
-498
lines changed

Some content is hidden

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

62 files changed

+2935
-498
lines changed

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

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

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2021-10-15)
44

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-2021-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.2 (2021-07-09)
78

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-2021-06-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-2021-10-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.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 733 additions & 27 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for SignalR Management</name>
16-
<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-2021-06-01-preview.</description>
16+
<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-2021-10-01.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
190190
.append("-")
191191
.append("com.azure.resourcemanager.signalr")
192192
.append("/")
193-
.append("1.0.0-beta.2");
193+
.append("1.0.0-beta.1");
194194
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
195195
userAgentBuilder
196196
.append(" (")

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Response<PrivateEndpointConnectionInner> updateWithResponse(
133133
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
134134
* @return the completion.
135135
*/
136-
@ServiceMethod(returns = ReturnType.SINGLE)
136+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
137137
SyncPoller<PollResult<Void>, Void> beginDelete(
138138
String privateEndpointConnectionName, String resourceGroupName, String resourceName);
139139

@@ -150,7 +150,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
150150
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
151151
* @return the completion.
152152
*/
153-
@ServiceMethod(returns = ReturnType.SINGLE)
153+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
154154
SyncPoller<PollResult<Void>, Void> beginDelete(
155155
String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context);
156156

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Response<SharedPrivateLinkResourceInner> getWithResponse(
9292
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
9393
* @return describes a Shared Private Link Resource.
9494
*/
95-
@ServiceMethod(returns = ReturnType.SINGLE)
95+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
9696
SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
9797
String sharedPrivateLinkResourceName,
9898
String resourceGroupName,
@@ -113,7 +113,7 @@ SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResource
113113
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
114114
* @return describes a Shared Private Link Resource.
115115
*/
116-
@ServiceMethod(returns = ReturnType.SINGLE)
116+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
117117
SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
118118
String sharedPrivateLinkResourceName,
119119
String resourceGroupName,
@@ -175,7 +175,7 @@ SharedPrivateLinkResourceInner createOrUpdate(
175175
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
176176
* @return the completion.
177177
*/
178-
@ServiceMethod(returns = ReturnType.SINGLE)
178+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
179179
SyncPoller<PollResult<Void>, Void> beginDelete(
180180
String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);
181181

@@ -192,7 +192,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
192192
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
193193
* @return the completion.
194194
*/
195-
@ServiceMethod(returns = ReturnType.SINGLE)
195+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
196196
SyncPoller<PollResult<Void>, Void> beginDelete(
197197
String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context);
198198

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

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner;
1515
import com.azure.resourcemanager.signalr.fluent.models.SignalRKeysInner;
1616
import com.azure.resourcemanager.signalr.fluent.models.SignalRResourceInner;
17+
import com.azure.resourcemanager.signalr.fluent.models.SkuListInner;
1718
import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters;
1819
import com.azure.resourcemanager.signalr.models.RegenerateKeyParameters;
1920

@@ -138,7 +139,7 @@ Response<SignalRResourceInner> getByResourceGroupWithResponse(
138139
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
139140
* @return a class represent a resource.
140141
*/
141-
@ServiceMethod(returns = ReturnType.SINGLE)
142+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
142143
SyncPoller<PollResult<SignalRResourceInner>, SignalRResourceInner> beginCreateOrUpdate(
143144
String resourceGroupName, String resourceName, SignalRResourceInner parameters);
144145

@@ -155,7 +156,7 @@ SyncPoller<PollResult<SignalRResourceInner>, SignalRResourceInner> beginCreateOr
155156
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
156157
* @return a class represent a resource.
157158
*/
158-
@ServiceMethod(returns = ReturnType.SINGLE)
159+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
159160
SyncPoller<PollResult<SignalRResourceInner>, SignalRResourceInner> beginCreateOrUpdate(
160161
String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context);
161162

@@ -202,7 +203,7 @@ SignalRResourceInner createOrUpdate(
202203
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
203204
* @return the completion.
204205
*/
205-
@ServiceMethod(returns = ReturnType.SINGLE)
206+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
206207
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String resourceName);
207208

208209
/**
@@ -217,7 +218,7 @@ SignalRResourceInner createOrUpdate(
217218
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
218219
* @return the completion.
219220
*/
220-
@ServiceMethod(returns = ReturnType.SINGLE)
221+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
221222
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String resourceName, Context context);
222223

223224
/**
@@ -259,7 +260,7 @@ SignalRResourceInner createOrUpdate(
259260
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
260261
* @return a class represent a resource.
261262
*/
262-
@ServiceMethod(returns = ReturnType.SINGLE)
263+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
263264
SyncPoller<PollResult<SignalRResourceInner>, SignalRResourceInner> beginUpdate(
264265
String resourceGroupName, String resourceName, SignalRResourceInner parameters);
265266

@@ -276,7 +277,7 @@ SyncPoller<PollResult<SignalRResourceInner>, SignalRResourceInner> beginUpdate(
276277
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
277278
* @return a class represent a resource.
278279
*/
279-
@ServiceMethod(returns = ReturnType.SINGLE)
280+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
280281
SyncPoller<PollResult<SignalRResourceInner>, SignalRResourceInner> beginUpdate(
281282
String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context);
282283

@@ -353,7 +354,7 @@ SignalRResourceInner update(
353354
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
354355
* @return a class represents the access keys of the resource.
355356
*/
356-
@ServiceMethod(returns = ReturnType.SINGLE)
357+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
357358
SyncPoller<PollResult<SignalRKeysInner>, SignalRKeysInner> beginRegenerateKey(
358359
String resourceGroupName, String resourceName, RegenerateKeyParameters parameters);
359360

@@ -370,7 +371,7 @@ SyncPoller<PollResult<SignalRKeysInner>, SignalRKeysInner> beginRegenerateKey(
370371
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
371372
* @return a class represents the access keys of the resource.
372373
*/
373-
@ServiceMethod(returns = ReturnType.SINGLE)
374+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
374375
SyncPoller<PollResult<SignalRKeysInner>, SignalRKeysInner> beginRegenerateKey(
375376
String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context);
376377

@@ -417,7 +418,7 @@ SignalRKeysInner regenerateKey(
417418
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
418419
* @return the completion.
419420
*/
420-
@ServiceMethod(returns = ReturnType.SINGLE)
421+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
421422
SyncPoller<PollResult<Void>, Void> beginRestart(String resourceGroupName, String resourceName);
422423

423424
/**
@@ -432,7 +433,7 @@ SignalRKeysInner regenerateKey(
432433
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
433434
* @return the completion.
434435
*/
435-
@ServiceMethod(returns = ReturnType.SINGLE)
436+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
436437
SyncPoller<PollResult<Void>, Void> beginRestart(String resourceGroupName, String resourceName, Context context);
437438

438439
/**
@@ -461,4 +462,33 @@ SignalRKeysInner regenerateKey(
461462
*/
462463
@ServiceMethod(returns = ReturnType.SINGLE)
463464
void restart(String resourceGroupName, String resourceName, Context context);
465+
466+
/**
467+
* List all available skus of the resource.
468+
*
469+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
470+
* from the Azure Resource Manager API or the portal.
471+
* @param resourceName The name of the resource.
472+
* @throws IllegalArgumentException thrown if parameters fail the validation.
473+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
474+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
475+
* @return the list skus operation response.
476+
*/
477+
@ServiceMethod(returns = ReturnType.SINGLE)
478+
SkuListInner listSkus(String resourceGroupName, String resourceName);
479+
480+
/**
481+
* List all available skus of the resource.
482+
*
483+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
484+
* from the Azure Resource Manager API or the portal.
485+
* @param resourceName The name of the resource.
486+
* @param context The context to associate with this operation.
487+
* @throws IllegalArgumentException thrown if parameters fail the validation.
488+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
489+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
490+
* @return the list skus operation response.
491+
*/
492+
@ServiceMethod(returns = ReturnType.SINGLE)
493+
Response<SkuListInner> listSkusWithResponse(String resourceGroupName, String resourceName, Context context);
464494
}

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

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package com.azure.resourcemanager.signalr.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.annotation.JsonFlatten;
98
import com.azure.core.management.ProxyResource;
109
import com.azure.core.management.SystemData;
1110
import com.azure.core.util.logging.ClientLogger;
@@ -14,11 +13,11 @@
1413
import com.azure.resourcemanager.signalr.models.ProvisioningState;
1514
import com.fasterxml.jackson.annotation.JsonIgnore;
1615
import com.fasterxml.jackson.annotation.JsonProperty;
16+
import java.util.List;
1717

1818
/** A private endpoint connection to an azure resource. */
19-
@JsonFlatten
2019
@Fluent
21-
public class PrivateEndpointConnectionInner extends ProxyResource {
20+
public final class PrivateEndpointConnectionInner extends ProxyResource {
2221
@JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
2322

2423
/*
@@ -28,22 +27,10 @@ public class PrivateEndpointConnectionInner extends ProxyResource {
2827
private SystemData systemData;
2928

3029
/*
31-
* Provisioning state of the private endpoint connection
30+
* Properties of the private endpoint connection
3231
*/
33-
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
34-
private ProvisioningState provisioningState;
35-
36-
/*
37-
* Private endpoint associated with the private endpoint connection
38-
*/
39-
@JsonProperty(value = "properties.privateEndpoint")
40-
private PrivateEndpoint privateEndpoint;
41-
42-
/*
43-
* Connection state
44-
*/
45-
@JsonProperty(value = "properties.privateLinkServiceConnectionState")
46-
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
32+
@JsonProperty(value = "properties")
33+
private PrivateEndpointConnectionProperties innerProperties;
4734

4835
/**
4936
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
@@ -54,13 +41,22 @@ public SystemData systemData() {
5441
return this.systemData;
5542
}
5643

44+
/**
45+
* Get the innerProperties property: Properties of the private endpoint connection.
46+
*
47+
* @return the innerProperties value.
48+
*/
49+
private PrivateEndpointConnectionProperties innerProperties() {
50+
return this.innerProperties;
51+
}
52+
5753
/**
5854
* Get the provisioningState property: Provisioning state of the private endpoint connection.
5955
*
6056
* @return the provisioningState value.
6157
*/
6258
public ProvisioningState provisioningState() {
63-
return this.provisioningState;
59+
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
6460
}
6561

6662
/**
@@ -69,7 +65,7 @@ public ProvisioningState provisioningState() {
6965
* @return the privateEndpoint value.
7066
*/
7167
public PrivateEndpoint privateEndpoint() {
72-
return this.privateEndpoint;
68+
return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
7369
}
7470

7571
/**
@@ -79,17 +75,29 @@ public PrivateEndpoint privateEndpoint() {
7975
* @return the PrivateEndpointConnectionInner object itself.
8076
*/
8177
public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
82-
this.privateEndpoint = privateEndpoint;
78+
if (this.innerProperties() == null) {
79+
this.innerProperties = new PrivateEndpointConnectionProperties();
80+
}
81+
this.innerProperties().withPrivateEndpoint(privateEndpoint);
8382
return this;
8483
}
8584

85+
/**
86+
* Get the groupIds property: Group IDs.
87+
*
88+
* @return the groupIds value.
89+
*/
90+
public List<String> groupIds() {
91+
return this.innerProperties() == null ? null : this.innerProperties().groupIds();
92+
}
93+
8694
/**
8795
* Get the privateLinkServiceConnectionState property: Connection state.
8896
*
8997
* @return the privateLinkServiceConnectionState value.
9098
*/
9199
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
92-
return this.privateLinkServiceConnectionState;
100+
return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
93101
}
94102

95103
/**
@@ -100,7 +108,10 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
100108
*/
101109
public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
102110
PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
103-
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
111+
if (this.innerProperties() == null) {
112+
this.innerProperties = new PrivateEndpointConnectionProperties();
113+
}
114+
this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
104115
return this;
105116
}
106117

@@ -110,11 +121,8 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
110121
* @throws IllegalArgumentException thrown if the instance is not valid.
111122
*/
112123
public void validate() {
113-
if (privateEndpoint() != null) {
114-
privateEndpoint().validate();
115-
}
116-
if (privateLinkServiceConnectionState() != null) {
117-
privateLinkServiceConnectionState().validate();
124+
if (innerProperties() != null) {
125+
innerProperties().validate();
118126
}
119127
}
120128
}

0 commit comments

Comments
 (0)