Skip to content

Commit 0919c56

Browse files
author
SDKAuto
committed
CodeGen from PR 17748 in Azure/azure-rest-api-specs
Merge 94f9592e5ea9dea66945be3d7fb1d5d2c2d9b033 into 69e8e7f15c262df57417fd2b436ac1092b66c588
1 parent 83064e0 commit 0919c56

File tree

136 files changed

+5964
-715
lines changed

Some content is hidden

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

136 files changed

+5964
-715
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.4 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-22)
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-2022-02-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-2021-10-01. 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-2022-02-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.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 237 additions & 22 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-10-01.</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-2022-02-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: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,17 @@
2323
import com.azure.core.util.logging.ClientLogger;
2424
import com.azure.resourcemanager.signalr.fluent.SignalRManagementClient;
2525
import com.azure.resourcemanager.signalr.implementation.OperationsImpl;
26+
import com.azure.resourcemanager.signalr.implementation.SignalRCustomCertificatesImpl;
27+
import com.azure.resourcemanager.signalr.implementation.SignalRCustomDomainsImpl;
2628
import com.azure.resourcemanager.signalr.implementation.SignalRManagementClientBuilder;
2729
import com.azure.resourcemanager.signalr.implementation.SignalRPrivateEndpointConnectionsImpl;
2830
import com.azure.resourcemanager.signalr.implementation.SignalRPrivateLinkResourcesImpl;
2931
import com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesImpl;
3032
import com.azure.resourcemanager.signalr.implementation.SignalRsImpl;
3133
import com.azure.resourcemanager.signalr.implementation.UsagesImpl;
3234
import com.azure.resourcemanager.signalr.models.Operations;
35+
import com.azure.resourcemanager.signalr.models.SignalRCustomCertificates;
36+
import com.azure.resourcemanager.signalr.models.SignalRCustomDomains;
3337
import com.azure.resourcemanager.signalr.models.SignalRPrivateEndpointConnections;
3438
import com.azure.resourcemanager.signalr.models.SignalRPrivateLinkResources;
3539
import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources;
@@ -50,6 +54,10 @@ public final class SignalRManager {
5054

5155
private Usages usages;
5256

57+
private SignalRCustomCertificates signalRCustomCertificates;
58+
59+
private SignalRCustomDomains signalRCustomDomains;
60+
5361
private SignalRPrivateEndpointConnections signalRPrivateEndpointConnections;
5462

5563
private SignalRPrivateLinkResources signalRPrivateLinkResources;
@@ -94,7 +102,7 @@ public static Configurable configure() {
94102

95103
/** The Configurable allowing configurations to be set. */
96104
public static final class Configurable {
97-
private final ClientLogger logger = new ClientLogger(Configurable.class);
105+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
98106

99107
private HttpClient httpClient;
100108
private HttpLogOptions httpLogOptions;
@@ -168,9 +176,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
168176
* @return the configurable object itself.
169177
*/
170178
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
171-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
179+
this.defaultPollInterval =
180+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
172181
if (this.defaultPollInterval.isNegative()) {
173-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
182+
throw LOGGER
183+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
174184
}
175185
return this;
176186
}
@@ -192,7 +202,7 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
192202
.append("-")
193203
.append("com.azure.resourcemanager.signalr")
194204
.append("/")
195-
.append("1.0.0-beta.3");
205+
.append("1.0.0-beta.1");
196206
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
197207
userAgentBuilder
198208
.append(" (")
@@ -268,6 +278,23 @@ public Usages usages() {
268278
return usages;
269279
}
270280

281+
/** @return Resource collection API of SignalRCustomCertificates. */
282+
public SignalRCustomCertificates signalRCustomCertificates() {
283+
if (this.signalRCustomCertificates == null) {
284+
this.signalRCustomCertificates =
285+
new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this);
286+
}
287+
return signalRCustomCertificates;
288+
}
289+
290+
/** @return Resource collection API of SignalRCustomDomains. */
291+
public SignalRCustomDomains signalRCustomDomains() {
292+
if (this.signalRCustomDomains == null) {
293+
this.signalRCustomDomains = new SignalRCustomDomainsImpl(clientObject.getSignalRCustomDomains(), this);
294+
}
295+
return signalRCustomDomains;
296+
}
297+
271298
/** @return Resource collection API of SignalRPrivateEndpointConnections. */
272299
public SignalRPrivateEndpointConnections signalRPrivateEndpointConnections() {
273300
if (this.signalRPrivateEndpointConnections == null) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface OperationsClient {
1717
*
1818
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
1919
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
20-
* @return result of the request to list REST API operations.
20+
* @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
2121
*/
2222
@ServiceMethod(returns = ReturnType.COLLECTION)
2323
PagedIterable<OperationInner> list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
2929
* @throws IllegalArgumentException thrown if parameters fail the validation.
3030
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3131
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
32-
* @return result of the request to list REST API operations.
32+
* @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
3333
*/
3434
@ServiceMethod(returns = ReturnType.COLLECTION)
3535
PagedIterable<OperationInner> list(Context context);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
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;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.management.polling.PollResult;
12+
import com.azure.core.util.Context;
13+
import com.azure.core.util.polling.SyncPoller;
14+
import com.azure.resourcemanager.signalr.fluent.models.CustomCertificateInner;
15+
16+
/** An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. */
17+
public interface SignalRCustomCertificatesClient {
18+
/**
19+
* List all custom certificates.
20+
*
21+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
22+
* from the Azure Resource Manager API or the portal.
23+
* @param resourceName The name of the resource.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation.
25+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
26+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27+
* @return custom certificates list as paginated response with {@link PagedIterable}.
28+
*/
29+
@ServiceMethod(returns = ReturnType.COLLECTION)
30+
PagedIterable<CustomCertificateInner> list(String resourceGroupName, String resourceName);
31+
32+
/**
33+
* List all custom certificates.
34+
*
35+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
36+
* from the Azure Resource Manager API or the portal.
37+
* @param resourceName The name of the resource.
38+
* @param context The context to associate with this operation.
39+
* @throws IllegalArgumentException thrown if parameters fail the validation.
40+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
41+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
42+
* @return custom certificates list as paginated response with {@link PagedIterable}.
43+
*/
44+
@ServiceMethod(returns = ReturnType.COLLECTION)
45+
PagedIterable<CustomCertificateInner> list(String resourceGroupName, String resourceName, Context context);
46+
47+
/**
48+
* Get a custom certificate.
49+
*
50+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
51+
* from the Azure Resource Manager API or the portal.
52+
* @param resourceName The name of the resource.
53+
* @param certificateName Custom certificate name.
54+
* @throws IllegalArgumentException thrown if parameters fail the validation.
55+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
56+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57+
* @return a custom certificate.
58+
*/
59+
@ServiceMethod(returns = ReturnType.SINGLE)
60+
CustomCertificateInner get(String resourceGroupName, String resourceName, String certificateName);
61+
62+
/**
63+
* Get a custom certificate.
64+
*
65+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
66+
* from the Azure Resource Manager API or the portal.
67+
* @param resourceName The name of the resource.
68+
* @param certificateName Custom certificate name.
69+
* @param context The context to associate with this operation.
70+
* @throws IllegalArgumentException thrown if parameters fail the validation.
71+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
72+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
73+
* @return a custom certificate along with {@link Response}.
74+
*/
75+
@ServiceMethod(returns = ReturnType.SINGLE)
76+
Response<CustomCertificateInner> getWithResponse(
77+
String resourceGroupName, String resourceName, String certificateName, Context context);
78+
79+
/**
80+
* Create or update a custom certificate.
81+
*
82+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
83+
* from the Azure Resource Manager API or the portal.
84+
* @param resourceName The name of the resource.
85+
* @param certificateName Custom certificate name.
86+
* @param parameters A custom certificate.
87+
* @throws IllegalArgumentException thrown if parameters fail the validation.
88+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
89+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
90+
* @return the {@link SyncPoller} for polling of a custom certificate.
91+
*/
92+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
93+
SyncPoller<PollResult<CustomCertificateInner>, CustomCertificateInner> beginCreateOrUpdate(
94+
String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters);
95+
96+
/**
97+
* Create or update a custom certificate.
98+
*
99+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
100+
* from the Azure Resource Manager API or the portal.
101+
* @param resourceName The name of the resource.
102+
* @param certificateName Custom certificate name.
103+
* @param parameters A custom certificate.
104+
* @param context The context to associate with this operation.
105+
* @throws IllegalArgumentException thrown if parameters fail the validation.
106+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
107+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
108+
* @return the {@link SyncPoller} for polling of a custom certificate.
109+
*/
110+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
111+
SyncPoller<PollResult<CustomCertificateInner>, CustomCertificateInner> beginCreateOrUpdate(
112+
String resourceGroupName,
113+
String resourceName,
114+
String certificateName,
115+
CustomCertificateInner parameters,
116+
Context context);
117+
118+
/**
119+
* Create or update a custom certificate.
120+
*
121+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
122+
* from the Azure Resource Manager API or the portal.
123+
* @param resourceName The name of the resource.
124+
* @param certificateName Custom certificate name.
125+
* @param parameters A custom certificate.
126+
* @throws IllegalArgumentException thrown if parameters fail the validation.
127+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
128+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
129+
* @return a custom certificate.
130+
*/
131+
@ServiceMethod(returns = ReturnType.SINGLE)
132+
CustomCertificateInner createOrUpdate(
133+
String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters);
134+
135+
/**
136+
* Create or update a custom certificate.
137+
*
138+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
139+
* from the Azure Resource Manager API or the portal.
140+
* @param resourceName The name of the resource.
141+
* @param certificateName Custom certificate name.
142+
* @param parameters A custom certificate.
143+
* @param context The context to associate with this operation.
144+
* @throws IllegalArgumentException thrown if parameters fail the validation.
145+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
146+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
147+
* @return a custom certificate.
148+
*/
149+
@ServiceMethod(returns = ReturnType.SINGLE)
150+
CustomCertificateInner createOrUpdate(
151+
String resourceGroupName,
152+
String resourceName,
153+
String certificateName,
154+
CustomCertificateInner parameters,
155+
Context context);
156+
157+
/**
158+
* Delete a custom certificate.
159+
*
160+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
161+
* from the Azure Resource Manager API or the portal.
162+
* @param resourceName The name of the resource.
163+
* @param certificateName Custom certificate name.
164+
* @throws IllegalArgumentException thrown if parameters fail the validation.
165+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
166+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
167+
*/
168+
@ServiceMethod(returns = ReturnType.SINGLE)
169+
void delete(String resourceGroupName, String resourceName, String certificateName);
170+
171+
/**
172+
* Delete a custom certificate.
173+
*
174+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
175+
* from the Azure Resource Manager API or the portal.
176+
* @param resourceName The name of the resource.
177+
* @param certificateName Custom certificate name.
178+
* @param context The context to associate with this operation.
179+
* @throws IllegalArgumentException thrown if parameters fail the validation.
180+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
181+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
182+
* @return the {@link Response}.
183+
*/
184+
@ServiceMethod(returns = ReturnType.SINGLE)
185+
Response<Void> deleteWithResponse(
186+
String resourceGroupName, String resourceName, String certificateName, Context context);
187+
}

0 commit comments

Comments
 (0)