Skip to content

Commit c4c831f

Browse files
author
SDKAuto
committed
CodeGen from PR 15864 in Azure/azure-rest-api-specs
Merge 7a3ef8b3787608dec68648704eab6a86ee266172 into 6223e02c7f87d0bd5878a0f79835860cb695c0c3
1 parent 801a1a2 commit c4c831f

Some content is hidden

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

42 files changed

+648
-662
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-09-14)
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-09-01-preview. 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 & 3 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-09-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.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on
7474

7575
## Examples
7676

77-
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md)
7877

7978

8079
## Troubleshooting

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-09-01-preview.</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/SignalRsClient.java

Lines changed: 30 additions & 0 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

@@ -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/SignalRResourceInner.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ public class SignalRResourceInner extends Resource {
111111
@JsonProperty(value = "properties.tls")
112112
private SignalRTlsSettings tls;
113113

114+
/*
115+
* Deprecated.
116+
*/
117+
@JsonProperty(value = "properties.hostNamePrefix", access = JsonProperty.Access.WRITE_ONLY)
118+
private String hostnamePrefix;
119+
114120
/*
115121
* List of the featureFlags.
116122
*
@@ -161,7 +167,7 @@ public class SignalRResourceInner extends Resource {
161167
private Boolean disableLocalAuth;
162168

163169
/*
164-
* disableAadAuth
170+
* DisableLocalAuth
165171
* Enable or disable aad auth
166172
* When set as true, connection with AuthType=aad won't work.
167173
*/
@@ -331,6 +337,15 @@ public SignalRResourceInner withTls(SignalRTlsSettings tls) {
331337
return this;
332338
}
333339

340+
/**
341+
* Get the hostnamePrefix property: Deprecated.
342+
*
343+
* @return the hostnamePrefix value.
344+
*/
345+
public String hostnamePrefix() {
346+
return this.hostnamePrefix;
347+
}
348+
334349
/**
335350
* Get the features property: List of the featureFlags.
336351
*
@@ -468,7 +483,7 @@ public SignalRResourceInner withDisableLocalAuth(Boolean disableLocalAuth) {
468483
}
469484

470485
/**
471-
* Get the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true, connection with
486+
* Get the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with
472487
* AuthType=aad won't work.
473488
*
474489
* @return the disableAadAuth value.
@@ -478,7 +493,7 @@ public Boolean disableAadAuth() {
478493
}
479494

480495
/**
481-
* Set the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true, connection with
496+
* Set the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with
482497
* AuthType=aad won't work.
483498
*
484499
* @param disableAadAuth the disableAadAuth value to set.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.signalr.fluent.models;
6+
7+
import com.azure.core.annotation.Immutable;
8+
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.resourcemanager.signalr.models.Sku;
10+
import com.fasterxml.jackson.annotation.JsonIgnore;
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import java.util.List;
13+
14+
/** The list skus operation response. */
15+
@Immutable
16+
public final class SkuListInner {
17+
@JsonIgnore private final ClientLogger logger = new ClientLogger(SkuListInner.class);
18+
19+
/*
20+
* The list of skus available for the resource.
21+
*/
22+
@JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
23+
private List<Sku> value;
24+
25+
/*
26+
* The URL the client should use to fetch the next page (per server side
27+
* paging).
28+
* It's null for now, added for future use.
29+
*/
30+
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
31+
private String nextLink;
32+
33+
/**
34+
* Get the value property: The list of skus available for the resource.
35+
*
36+
* @return the value value.
37+
*/
38+
public List<Sku> value() {
39+
return this.value;
40+
}
41+
42+
/**
43+
* Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's
44+
* null for now, added for future use.
45+
*
46+
* @return the nextLink value.
47+
*/
48+
public String nextLink() {
49+
return this.nextLink;
50+
}
51+
52+
/**
53+
* Validates the instance.
54+
*
55+
* @throws IllegalArgumentException thrown if the instance is not valid.
56+
*/
57+
public void validate() {
58+
if (value() != null) {
59+
value().forEach(e -> e.validate());
60+
}
61+
}
62+
}

sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour
214214
this.defaultPollInterval = defaultPollInterval;
215215
this.subscriptionId = subscriptionId;
216216
this.endpoint = endpoint;
217-
this.apiVersion = "2021-06-01-preview";
217+
this.apiVersion = "2021-09-01-preview";
218218
this.operations = new OperationsClientImpl(this);
219219
this.signalRs = new SignalRsClientImpl(this);
220220
this.usages = new UsagesClientImpl(this);

sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRResourceImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ public SignalRTlsSettings tls() {
132132
return this.innerModel().tls();
133133
}
134134

135+
public String hostnamePrefix() {
136+
return this.innerModel().hostnamePrefix();
137+
}
138+
135139
public List<SignalRFeature> features() {
136140
List<SignalRFeature> inner = this.innerModel().features();
137141
if (inner != null) {

0 commit comments

Comments
 (0)