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/webpubsub/azure-resourcemanager-webpubsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2023-08-18)

- Azure Resource Manager WebPubSub client library for Java. This package contains Microsoft Azure SDK for WebPubSub Management SDK. REST API for Azure WebPubSub Service. Package tag package-2023-08-01-preview. 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/webpubsub/azure-resourcemanager-webpubsub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager WebPubSub client library for Java.

This package contains Microsoft Azure SDK for WebPubSub Management SDK. REST API for Azure WebPubSub Service. Package tag package-2023-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 WebPubSub Management SDK. REST API for Azure WebPubSub Service. Package tag package-2023-08-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-webpubsub</artifactId>
<version>1.1.0-beta.1</version>
<version>1.1.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
84 changes: 43 additions & 41 deletions sdk/webpubsub/azure-resourcemanager-webpubsub/SAMPLE.md

Large diffs are not rendered by default.

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

<name>Microsoft Azure SDK for WebPubSub Management</name>
<description>This package contains Microsoft Azure SDK for WebPubSub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure WebPubSub Service. Package tag package-2023-06-01-preview.</description>
<description>This package contains Microsoft Azure SDK for WebPubSub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure WebPubSub Service. Package tag package-2023-08-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,7 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.webpubsub")
.append("/")
.append("1.1.0-beta.1");
.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 @@ -98,6 +98,56 @@ public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}

/**
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
*
* @return the regionEndpointEnabled value.
*/
public String regionEndpointEnabled() {
return this.innerProperties() == null ? null : this.innerProperties().regionEndpointEnabled();
}

/**
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
*
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
* @return the ReplicaInner object itself.
*/
public ReplicaInner withRegionEndpointEnabled(String regionEndpointEnabled) {
if (this.innerProperties() == null) {
this.innerProperties = new ReplicaProperties();
}
this.innerProperties().withRegionEndpointEnabled(regionEndpointEnabled);
return this;
}

/**
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @return the resourceStopped value.
*/
public String resourceStopped() {
return this.innerProperties() == null ? null : this.innerProperties().resourceStopped();
}

/**
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @param resourceStopped the resourceStopped value to set.
* @return the ReplicaInner object itself.
*/
public ReplicaInner withResourceStopped(String resourceStopped) {
if (this.innerProperties() == null) {
this.innerProperties = new ReplicaProperties();
}
this.innerProperties().withResourceStopped(resourceStopped);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,35 @@

package com.azure.resourcemanager.webpubsub.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The ReplicaProperties model. */
@Immutable
@Fluent
public final class ReplicaProperties {
/*
* Provisioning state of the resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;

/*
* Enable or disable the regional endpoint. Default to "Enabled".
* When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not
* be affected.
*/
@JsonProperty(value = "regionEndpointEnabled")
private String regionEndpointEnabled;

/*
* Stop or start the resource. Default to "false".
* When it's true, the data plane of the resource is shutdown.
* When it's false, the data plane of the resource is started.
*/
@JsonProperty(value = "resourceStopped")
private String resourceStopped;

/** Creates an instance of ReplicaProperties class. */
public ReplicaProperties() {
}
Expand All @@ -30,6 +46,50 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}

/**
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
*
* @return the regionEndpointEnabled value.
*/
public String regionEndpointEnabled() {
return this.regionEndpointEnabled;
}

/**
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
*
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
* @return the ReplicaProperties object itself.
*/
public ReplicaProperties withRegionEndpointEnabled(String regionEndpointEnabled) {
this.regionEndpointEnabled = regionEndpointEnabled;
return this;
}

/**
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @return the resourceStopped value.
*/
public String resourceStopped() {
return this.resourceStopped;
}

/**
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @param resourceStopped the resourceStopped value to set.
* @return the ReplicaProperties object itself.
*/
public ReplicaProperties withResourceStopped(String resourceStopped) {
this.resourceStopped = resourceStopped;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,23 @@ public final class WebPubSubProperties {
@JsonProperty(value = "disableAadAuth")
private Boolean disableAadAuth;

/*
* Enable or disable the regional endpoint. Default to "Enabled".
* When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not
* be affected.
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
*/
@JsonProperty(value = "regionEndpointEnabled")
private String regionEndpointEnabled;

/*
* Stop or start the resource. Default to "false".
* When it's true, the data plane of the resource is shutdown.
* When it's false, the data plane of the resource is started.
*/
@JsonProperty(value = "resourceStopped")
private String resourceStopped;

/** Creates an instance of WebPubSubProperties class. */
public WebPubSubProperties() {
}
Expand Down Expand Up @@ -353,6 +370,52 @@ public WebPubSubProperties withDisableAadAuth(Boolean disableAadAuth) {
return this;
}

/**
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
*
* @return the regionEndpointEnabled value.
*/
public String regionEndpointEnabled() {
return this.regionEndpointEnabled;
}

/**
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
*
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
* @return the WebPubSubProperties object itself.
*/
public WebPubSubProperties withRegionEndpointEnabled(String regionEndpointEnabled) {
this.regionEndpointEnabled = regionEndpointEnabled;
return this;
}

/**
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @return the resourceStopped value.
*/
public String resourceStopped() {
return this.resourceStopped;
}

/**
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @param resourceStopped the resourceStopped value to set.
* @return the WebPubSubProperties object itself.
*/
public WebPubSubProperties withResourceStopped(String resourceStopped) {
this.resourceStopped = resourceStopped;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,58 @@ public WebPubSubResourceInner withDisableAadAuth(Boolean disableAadAuth) {
return this;
}

/**
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
*
* @return the regionEndpointEnabled value.
*/
public String regionEndpointEnabled() {
return this.innerProperties() == null ? null : this.innerProperties().regionEndpointEnabled();
}

/**
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
*
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
* @return the WebPubSubResourceInner object itself.
*/
public WebPubSubResourceInner withRegionEndpointEnabled(String regionEndpointEnabled) {
if (this.innerProperties() == null) {
this.innerProperties = new WebPubSubProperties();
}
this.innerProperties().withRegionEndpointEnabled(regionEndpointEnabled);
return this;
}

/**
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @return the resourceStopped value.
*/
public String resourceStopped() {
return this.innerProperties() == null ? null : this.innerProperties().resourceStopped();
}

/**
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
* of the resource is shutdown. When it's false, the data plane of the resource is started.
*
* @param resourceStopped the resourceStopped value to set.
* @return the WebPubSubResourceInner object itself.
*/
public WebPubSubResourceInner withResourceStopped(String resourceStopped) {
if (this.innerProperties() == null) {
this.innerProperties = new WebPubSubProperties();
}
this.innerProperties().withResourceStopped(resourceStopped);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}

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

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

public Region region() {
return Region.fromName(this.regionName());
}
Expand Down Expand Up @@ -189,4 +197,14 @@ public ReplicaImpl withSku(ResourceSku sku) {
this.innerModel().withSku(sku);
return this;
}

public ReplicaImpl withRegionEndpointEnabled(String regionEndpointEnabled) {
this.innerModel().withRegionEndpointEnabled(regionEndpointEnabled);
return this;
}

public ReplicaImpl withResourceStopped(String resourceStopped) {
this.innerModel().withResourceStopped(resourceStopped);
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public WebPubSubSharedPrivateLinkResourcesClient getWebPubSubSharedPrivateLinkRe
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2023-06-01-preview";
this.apiVersion = "2023-08-01-preview";
this.operations = new OperationsClientImpl(this);
this.webPubSubs = new WebPubSubsClientImpl(this);
this.usages = new UsagesClientImpl(this);
Expand Down
Loading