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
3 changes: 2 additions & 1 deletion sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

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

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

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

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-06-01-preview. 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-2021-10-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.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
760 changes: 733 additions & 27 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-06-01-preview.</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-2021-10-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 @@ -190,7 +190,7 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.signalr")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Response<PrivateEndpointConnectionInner> updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String privateEndpointConnectionName, String resourceGroupName, String resourceName);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Response<SharedPrivateLinkResourceInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return describes a Shared Private Link Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
String sharedPrivateLinkResourceName,
String resourceGroupName,
Expand All @@ -113,7 +113,7 @@ SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResource
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return describes a Shared Private Link Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<SharedPrivateLinkResourceInner>, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
String sharedPrivateLinkResourceName,
String resourceGroupName,
Expand Down Expand Up @@ -175,7 +175,7 @@ SharedPrivateLinkResourceInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner;
import com.azure.resourcemanager.signalr.fluent.models.SignalRKeysInner;
import com.azure.resourcemanager.signalr.fluent.models.SignalRResourceInner;
import com.azure.resourcemanager.signalr.fluent.models.SkuListInner;
import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters;
import com.azure.resourcemanager.signalr.models.RegenerateKeyParameters;

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

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

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

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

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

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

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

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

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

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

/**
Expand Down Expand Up @@ -461,4 +462,33 @@ SignalRKeysInner regenerateKey(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restart(String resourceGroupName, String resourceName, Context context);

/**
* List all available skus of the resource.
*
* @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 the list skus operation response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SkuListInner listSkus(String resourceGroupName, String resourceName);

/**
* List all available skus of the resource.
*
* @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 the list skus operation response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SkuListInner> listSkusWithResponse(String resourceGroupName, String resourceName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package com.azure.resourcemanager.signalr.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
Expand All @@ -14,11 +13,11 @@
import com.azure.resourcemanager.signalr.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** A private endpoint connection to an azure resource. */
@JsonFlatten
@Fluent
public class PrivateEndpointConnectionInner extends ProxyResource {
public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);

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

/*
* Provisioning state of the private endpoint connection
* Properties of the private endpoint connection
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;

/*
* Private endpoint associated with the private endpoint connection
*/
@JsonProperty(value = "properties.privateEndpoint")
private PrivateEndpoint privateEndpoint;

/*
* Connection state
*/
@JsonProperty(value = "properties.privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
@JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties innerProperties;

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

/**
* Get the innerProperties property: Properties of the private endpoint connection.
*
* @return the innerProperties value.
*/
private PrivateEndpointConnectionProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the provisioningState property: Provisioning state of the private endpoint connection.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}

/**
Expand All @@ -69,7 +65,7 @@ public ProvisioningState provisioningState() {
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
return this.privateEndpoint;
return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
}

/**
Expand All @@ -79,17 +75,29 @@ public PrivateEndpoint privateEndpoint() {
* @return the PrivateEndpointConnectionInner object itself.
*/
public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
this.privateEndpoint = privateEndpoint;
if (this.innerProperties() == null) {
this.innerProperties = new PrivateEndpointConnectionProperties();
}
this.innerProperties().withPrivateEndpoint(privateEndpoint);
return this;
}

/**
* Get the groupIds property: Group IDs.
*
* @return the groupIds value.
*/
public List<String> groupIds() {
return this.innerProperties() == null ? null : this.innerProperties().groupIds();
}

/**
* Get the privateLinkServiceConnectionState property: Connection state.
*
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
return this.privateLinkServiceConnectionState;
return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
}

/**
Expand All @@ -100,7 +108,10 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
*/
public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
if (this.innerProperties() == null) {
this.innerProperties = new PrivateEndpointConnectionProperties();
}
this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
return this;
}

Expand All @@ -110,11 +121,8 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (privateEndpoint() != null) {
privateEndpoint().validate();
}
if (privateLinkServiceConnectionState() != null) {
privateLinkServiceConnectionState().validate();
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
Loading