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-07-30)

- 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-04-01-preview. 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
5 changes: 2 additions & 3 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-04-01-preview. 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 Expand Up @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

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


## Troubleshooting
Expand Down
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-04-01-preview.</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 @@ -143,31 +143,6 @@ public class SignalRResourceInner extends Resource {
@JsonProperty(value = "properties.networkACLs")
private SignalRNetworkACLs networkACLs;

/*
* Enable or disable public network access. Default to "Enabled".
* When it's Enabled, network ACLs still apply.
* When it's Disabled, public network access is always disabled no matter
* what you set in network ACLs.
*/
@JsonProperty(value = "properties.publicNetworkAccess")
private String publicNetworkAccess;

/*
* DisableLocalAuth
* Enable or disable local auth with AccessKey
* When set as true, connection with AccessKey=xxx won't work.
*/
@JsonProperty(value = "properties.disableLocalAuth")
private Boolean disableLocalAuth;

/*
* disableAadAuth
* Enable or disable aad auth
* When set as true, connection with AuthType=aad won't work.
*/
@JsonProperty(value = "properties.disableAadAuth")
private Boolean disableAadAuth;

/**
* Get the sku property: The billing information of the resource.(e.g. Free, Standard).
*
Expand Down Expand Up @@ -421,74 +396,6 @@ public SignalRResourceInner withNetworkACLs(SignalRNetworkACLs networkACLs) {
return this;
}

/**
* Get the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's
* Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what
* you set in network ACLs.
*
* @return the publicNetworkAccess value.
*/
public String publicNetworkAccess() {
return this.publicNetworkAccess;
}

/**
* Set the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's
* Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what
* you set in network ACLs.
*
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the SignalRResourceInner object itself.
*/
public SignalRResourceInner withPublicNetworkAccess(String publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}

/**
* Get the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true,
* connection with AccessKey=xxx won't work.
*
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
return this.disableLocalAuth;
}

/**
* Set the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true,
* connection with AccessKey=xxx won't work.
*
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the SignalRResourceInner object itself.
*/
public SignalRResourceInner withDisableLocalAuth(Boolean disableLocalAuth) {
this.disableLocalAuth = disableLocalAuth;
return this;
}

/**
* Get the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true, connection with
* AuthType=aad won't work.
*
* @return the disableAadAuth value.
*/
public Boolean disableAadAuth() {
return this.disableAadAuth;
}

/**
* Set the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true, connection with
* AuthType=aad won't work.
*
* @param disableAadAuth the disableAadAuth value to set.
* @return the SignalRResourceInner object itself.
*/
public SignalRResourceInner withDisableAadAuth(Boolean disableAadAuth) {
this.disableAadAuth = disableAadAuth;
return this;
}

/** {@inheritDoc} */
@Override
public SignalRResourceInner withLocation(String location) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2021-06-01-preview";
this.apiVersion = "2021-04-01-preview";
this.operations = new OperationsClientImpl(this);
this.signalRs = new SignalRsClientImpl(this);
this.usages = new UsagesClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,6 @@ public SignalRNetworkACLs networkACLs() {
return this.innerModel().networkACLs();
}

public String publicNetworkAccess() {
return this.innerModel().publicNetworkAccess();
}

public Boolean disableLocalAuth() {
return this.innerModel().disableLocalAuth();
}

public Boolean disableAadAuth() {
return this.innerModel().disableAadAuth();
}

public Region region() {
return Region.fromName(this.regionName());
}
Expand Down Expand Up @@ -342,19 +330,4 @@ public SignalRResourceImpl withNetworkACLs(SignalRNetworkACLs networkACLs) {
this.innerModel().withNetworkACLs(networkACLs);
return this;
}

public SignalRResourceImpl withPublicNetworkAccess(String publicNetworkAccess) {
this.innerModel().withPublicNetworkAccess(publicNetworkAccess);
return this;
}

public SignalRResourceImpl withDisableLocalAuth(Boolean disableLocalAuth) {
this.innerModel().withDisableLocalAuth(disableLocalAuth);
return this;
}

public SignalRResourceImpl withDisableAadAuth(Boolean disableAadAuth) {
this.innerModel().withDisableAadAuth(disableAadAuth);
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

Expand All @@ -25,6 +26,7 @@ public class ManagedIdentity {
* Get or set the user assigned identities
*/
@JsonProperty(value = "userAssignedIdentities")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, UserAssignedIdentityProperty> userAssignedIdentities;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Feature of a resource, which controls the runtime behavior. */
/** Feature of a SignalR resource, which controls the SignalR runtime behavior. */
@Fluent
public final class SignalRFeature {
@JsonIgnore private final ClientLogger logger = new ClientLogger(SignalRFeature.class);
Expand Down Expand Up @@ -47,6 +48,7 @@ public final class SignalRFeature {
* Optional properties related to this feature.
*/
@JsonProperty(value = "properties")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, String> properties;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,31 +175,6 @@ public interface SignalRResource {
*/
SignalRNetworkACLs networkACLs();

/**
* Gets the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's
* Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what
* you set in network ACLs.
*
* @return the publicNetworkAccess value.
*/
String publicNetworkAccess();

/**
* Gets the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as
* true, connection with AccessKey=xxx won't work.
*
* @return the disableLocalAuth value.
*/
Boolean disableLocalAuth();

/**
* Gets the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true, connection with
* AuthType=aad won't work.
*
* @return the disableAadAuth value.
*/
Boolean disableAadAuth();

/**
* Gets the region of the resource.
*
Expand Down Expand Up @@ -275,10 +250,7 @@ interface WithCreate
DefinitionStages.WithFeatures,
DefinitionStages.WithCors,
DefinitionStages.WithUpstream,
DefinitionStages.WithNetworkACLs,
DefinitionStages.WithPublicNetworkAccess,
DefinitionStages.WithDisableLocalAuth,
DefinitionStages.WithDisableAadAuth {
DefinitionStages.WithNetworkACLs {
/**
* Executes the create request.
*
Expand Down Expand Up @@ -394,44 +366,6 @@ interface WithNetworkACLs {
*/
WithCreate withNetworkACLs(SignalRNetworkACLs networkACLs);
}
/** The stage of the SignalRResource definition allowing to specify publicNetworkAccess. */
interface WithPublicNetworkAccess {
/**
* Specifies the publicNetworkAccess property: Enable or disable public network access. Default to
* "Enabled". When it's Enabled, network ACLs still apply. When it's Disabled, public network access is
* always disabled no matter what you set in network ACLs..
*
* @param publicNetworkAccess Enable or disable public network access. Default to "Enabled". When it's
* Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no
* matter what you set in network ACLs.
* @return the next definition stage.
*/
WithCreate withPublicNetworkAccess(String publicNetworkAccess);
}
/** The stage of the SignalRResource definition allowing to specify disableLocalAuth. */
interface WithDisableLocalAuth {
/**
* Specifies the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey
* When set as true, connection with AccessKey=xxx won't work..
*
* @param disableLocalAuth DisableLocalAuth Enable or disable local auth with AccessKey When set as true,
* connection with AccessKey=xxx won't work.
* @return the next definition stage.
*/
WithCreate withDisableLocalAuth(Boolean disableLocalAuth);
}
/** The stage of the SignalRResource definition allowing to specify disableAadAuth. */
interface WithDisableAadAuth {
/**
* Specifies the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true,
* connection with AuthType=aad won't work..
*
* @param disableAadAuth disableAadAuth Enable or disable aad auth When set as true, connection with
* AuthType=aad won't work.
* @return the next definition stage.
*/
WithCreate withDisableAadAuth(Boolean disableAadAuth);
}
}
/**
* Begins update for the SignalRResource resource.
Expand All @@ -449,10 +383,7 @@ interface Update
UpdateStages.WithFeatures,
UpdateStages.WithCors,
UpdateStages.WithUpstream,
UpdateStages.WithNetworkACLs,
UpdateStages.WithPublicNetworkAccess,
UpdateStages.WithDisableLocalAuth,
UpdateStages.WithDisableAadAuth {
UpdateStages.WithNetworkACLs {
/**
* Executes the update request.
*
Expand Down Expand Up @@ -559,44 +490,6 @@ interface WithNetworkACLs {
*/
Update withNetworkACLs(SignalRNetworkACLs networkACLs);
}
/** The stage of the SignalRResource update allowing to specify publicNetworkAccess. */
interface WithPublicNetworkAccess {
/**
* Specifies the publicNetworkAccess property: Enable or disable public network access. Default to
* "Enabled". When it's Enabled, network ACLs still apply. When it's Disabled, public network access is
* always disabled no matter what you set in network ACLs..
*
* @param publicNetworkAccess Enable or disable public network access. Default to "Enabled". When it's
* Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no
* matter what you set in network ACLs.
* @return the next definition stage.
*/
Update withPublicNetworkAccess(String publicNetworkAccess);
}
/** The stage of the SignalRResource update allowing to specify disableLocalAuth. */
interface WithDisableLocalAuth {
/**
* Specifies the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey
* When set as true, connection with AccessKey=xxx won't work..
*
* @param disableLocalAuth DisableLocalAuth Enable or disable local auth with AccessKey When set as true,
* connection with AccessKey=xxx won't work.
* @return the next definition stage.
*/
Update withDisableLocalAuth(Boolean disableLocalAuth);
}
/** The stage of the SignalRResource update allowing to specify disableAadAuth. */
interface WithDisableAadAuth {
/**
* Specifies the disableAadAuth property: disableAadAuth Enable or disable aad auth When set as true,
* connection with AuthType=aad won't work..
*
* @param disableAadAuth disableAadAuth Enable or disable aad auth When set as true, connection with
* AuthType=aad won't work.
* @return the next definition stage.
*/
Update withDisableAadAuth(Boolean disableAadAuth);
}
}
/**
* Refreshes the resource to sync with Azure.
Expand Down