Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-03-22)

- 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).

### Features Added

Expand Down
4 changes: 2 additions & 2 deletions sdk/signalr/azure-resourcemanager-signalr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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).
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).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-signalr</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
259 changes: 237 additions & 22 deletions sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/signalr/azure-resourcemanager-signalr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for SignalR Management</name>
<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>
<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>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.signalr.fluent.SignalRManagementClient;
import com.azure.resourcemanager.signalr.implementation.OperationsImpl;
import com.azure.resourcemanager.signalr.implementation.SignalRCustomCertificatesImpl;
import com.azure.resourcemanager.signalr.implementation.SignalRCustomDomainsImpl;
import com.azure.resourcemanager.signalr.implementation.SignalRManagementClientBuilder;
import com.azure.resourcemanager.signalr.implementation.SignalRPrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.signalr.implementation.SignalRPrivateLinkResourcesImpl;
import com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesImpl;
import com.azure.resourcemanager.signalr.implementation.SignalRsImpl;
import com.azure.resourcemanager.signalr.implementation.UsagesImpl;
import com.azure.resourcemanager.signalr.models.Operations;
import com.azure.resourcemanager.signalr.models.SignalRCustomCertificates;
import com.azure.resourcemanager.signalr.models.SignalRCustomDomains;
import com.azure.resourcemanager.signalr.models.SignalRPrivateEndpointConnections;
import com.azure.resourcemanager.signalr.models.SignalRPrivateLinkResources;
import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources;
Expand All @@ -50,6 +54,10 @@ public final class SignalRManager {

private Usages usages;

private SignalRCustomCertificates signalRCustomCertificates;

private SignalRCustomDomains signalRCustomDomains;

private SignalRPrivateEndpointConnections signalRPrivateEndpointConnections;

private SignalRPrivateLinkResources signalRPrivateLinkResources;
Expand Down Expand Up @@ -94,7 +102,7 @@ public static Configurable configure() {

/** The Configurable allowing configurations to be set. */
public static final class Configurable {
private final ClientLogger logger = new ClientLogger(Configurable.class);
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -168,9 +176,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
this.defaultPollInterval =
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
Expand All @@ -192,7 +202,7 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.signalr")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -268,6 +278,23 @@ public Usages usages() {
return usages;
}

/** @return Resource collection API of SignalRCustomCertificates. */
public SignalRCustomCertificates signalRCustomCertificates() {
if (this.signalRCustomCertificates == null) {
this.signalRCustomCertificates =
new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this);
}
return signalRCustomCertificates;
}

/** @return Resource collection API of SignalRCustomDomains. */
public SignalRCustomDomains signalRCustomDomains() {
if (this.signalRCustomDomains == null) {
this.signalRCustomDomains = new SignalRCustomDomainsImpl(clientObject.getSignalRCustomDomains(), this);
}
return signalRCustomDomains;
}

/** @return Resource collection API of SignalRPrivateEndpointConnections. */
public SignalRPrivateEndpointConnections signalRPrivateEndpointConnections() {
if (this.signalRPrivateEndpointConnections == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
* @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list();
Expand All @@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
* @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list(Context context);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.signalr.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.signalr.fluent.models.CustomCertificateInner;

/** An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. */
public interface SignalRCustomCertificatesClient {
/**
* List all custom certificates.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return custom certificates list as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CustomCertificateInner> list(String resourceGroupName, String resourceName);

/**
* List all custom certificates.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return custom certificates list as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CustomCertificateInner> list(String resourceGroupName, String resourceName, Context context);

/**
* Get a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a custom certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CustomCertificateInner get(String resourceGroupName, String resourceName, String certificateName);

/**
* Get a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a custom certificate along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CustomCertificateInner> getWithResponse(
String resourceGroupName, String resourceName, String certificateName, Context context);

/**
* Create or update a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @param parameters A custom certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a custom certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<CustomCertificateInner>, CustomCertificateInner> beginCreateOrUpdate(
String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters);

/**
* Create or update a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @param parameters A custom certificate.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a custom certificate.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<CustomCertificateInner>, CustomCertificateInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
String certificateName,
CustomCertificateInner parameters,
Context context);

/**
* Create or update a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @param parameters A custom certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a custom certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CustomCertificateInner createOrUpdate(
String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters);

/**
* Create or update a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @param parameters A custom certificate.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a custom certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CustomCertificateInner createOrUpdate(
String resourceGroupName,
String resourceName,
String certificateName,
CustomCertificateInner parameters,
Context context);

/**
* Delete a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String resourceName, String certificateName);

/**
* Delete a custom certificate.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param resourceName The name of the resource.
* @param certificateName Custom certificate name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String resourceName, String certificateName, Context context);
}
Loading