Skip to content

Commit 1f3444a

Browse files
author
SDKAuto
committed
CodeGen from PR 25378 in Azure/azure-rest-api-specs
Merge 658fb5c422a8caaffe413286e71c6a1a7722187d into 624dbc769880e5676ae8bb20d3c82ebd1783c64a
1 parent 96b4a85 commit 1f3444a

File tree

149 files changed

+627
-6375
lines changed

Some content is hidden

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

149 files changed

+627
-6375
lines changed

sdk/webpubsub/azure-resourcemanager-webpubsub/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.1.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2023-08-18)
4+
5+
- 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).
46

57
### Features Added
68

sdk/webpubsub/azure-resourcemanager-webpubsub/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 WebPubSub client library for Java.
44

5-
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).
5+
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).
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-webpubsub</artifactId>
35-
<version>1.1.0-beta.1</version>
35+
<version>1.1.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 43 additions & 41 deletions
Large diffs are not rendered by default.

sdk/webpubsub/azure-resourcemanager-webpubsub/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for WebPubSub Management</name>
21-
<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>
21+
<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>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,7 +45,6 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<revapi.skip>true</revapi.skip>
4948
</properties>
5049
<dependencies>
5150
<dependency>

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/WebPubSubManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
239239
.append("-")
240240
.append("com.azure.resourcemanager.webpubsub")
241241
.append("/")
242-
.append("1.1.0-beta.1");
242+
.append("1.0.0-beta.1");
243243
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
244244
userAgentBuilder
245245
.append(" (")

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/ReplicaInner.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,56 @@ public ProvisioningState provisioningState() {
9898
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
9999
}
100100

101+
/**
102+
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
103+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
104+
*
105+
* @return the regionEndpointEnabled value.
106+
*/
107+
public String regionEndpointEnabled() {
108+
return this.innerProperties() == null ? null : this.innerProperties().regionEndpointEnabled();
109+
}
110+
111+
/**
112+
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
113+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
114+
*
115+
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
116+
* @return the ReplicaInner object itself.
117+
*/
118+
public ReplicaInner withRegionEndpointEnabled(String regionEndpointEnabled) {
119+
if (this.innerProperties() == null) {
120+
this.innerProperties = new ReplicaProperties();
121+
}
122+
this.innerProperties().withRegionEndpointEnabled(regionEndpointEnabled);
123+
return this;
124+
}
125+
126+
/**
127+
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
128+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
129+
*
130+
* @return the resourceStopped value.
131+
*/
132+
public String resourceStopped() {
133+
return this.innerProperties() == null ? null : this.innerProperties().resourceStopped();
134+
}
135+
136+
/**
137+
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
138+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
139+
*
140+
* @param resourceStopped the resourceStopped value to set.
141+
* @return the ReplicaInner object itself.
142+
*/
143+
public ReplicaInner withResourceStopped(String resourceStopped) {
144+
if (this.innerProperties() == null) {
145+
this.innerProperties = new ReplicaProperties();
146+
}
147+
this.innerProperties().withResourceStopped(resourceStopped);
148+
return this;
149+
}
150+
101151
/**
102152
* Validates the instance.
103153
*

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/ReplicaProperties.java

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,35 @@
44

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

7-
import com.azure.core.annotation.Immutable;
7+
import com.azure.core.annotation.Fluent;
88
import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
99
import com.fasterxml.jackson.annotation.JsonProperty;
1010

1111
/** The ReplicaProperties model. */
12-
@Immutable
12+
@Fluent
1313
public final class ReplicaProperties {
1414
/*
1515
* Provisioning state of the resource.
1616
*/
1717
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
1818
private ProvisioningState provisioningState;
1919

20+
/*
21+
* Enable or disable the regional endpoint. Default to "Enabled".
22+
* When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not
23+
* be affected.
24+
*/
25+
@JsonProperty(value = "regionEndpointEnabled")
26+
private String regionEndpointEnabled;
27+
28+
/*
29+
* Stop or start the resource. Default to "false".
30+
* When it's true, the data plane of the resource is shutdown.
31+
* When it's false, the data plane of the resource is started.
32+
*/
33+
@JsonProperty(value = "resourceStopped")
34+
private String resourceStopped;
35+
2036
/** Creates an instance of ReplicaProperties class. */
2137
public ReplicaProperties() {
2238
}
@@ -30,6 +46,50 @@ public ProvisioningState provisioningState() {
3046
return this.provisioningState;
3147
}
3248

49+
/**
50+
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
51+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
52+
*
53+
* @return the regionEndpointEnabled value.
54+
*/
55+
public String regionEndpointEnabled() {
56+
return this.regionEndpointEnabled;
57+
}
58+
59+
/**
60+
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
61+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
62+
*
63+
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
64+
* @return the ReplicaProperties object itself.
65+
*/
66+
public ReplicaProperties withRegionEndpointEnabled(String regionEndpointEnabled) {
67+
this.regionEndpointEnabled = regionEndpointEnabled;
68+
return this;
69+
}
70+
71+
/**
72+
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
73+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
74+
*
75+
* @return the resourceStopped value.
76+
*/
77+
public String resourceStopped() {
78+
return this.resourceStopped;
79+
}
80+
81+
/**
82+
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
83+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
84+
*
85+
* @param resourceStopped the resourceStopped value to set.
86+
* @return the ReplicaProperties object itself.
87+
*/
88+
public ReplicaProperties withResourceStopped(String resourceStopped) {
89+
this.resourceStopped = resourceStopped;
90+
return this;
91+
}
92+
3393
/**
3494
* Validates the instance.
3595
*

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubProperties.java

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,23 @@ public final class WebPubSubProperties {
118118
@JsonProperty(value = "disableAadAuth")
119119
private Boolean disableAadAuth;
120120

121+
/*
122+
* Enable or disable the regional endpoint. Default to "Enabled".
123+
* When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not
124+
* be affected.
125+
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
126+
*/
127+
@JsonProperty(value = "regionEndpointEnabled")
128+
private String regionEndpointEnabled;
129+
130+
/*
131+
* Stop or start the resource. Default to "false".
132+
* When it's true, the data plane of the resource is shutdown.
133+
* When it's false, the data plane of the resource is started.
134+
*/
135+
@JsonProperty(value = "resourceStopped")
136+
private String resourceStopped;
137+
121138
/** Creates an instance of WebPubSubProperties class. */
122139
public WebPubSubProperties() {
123140
}
@@ -353,6 +370,52 @@ public WebPubSubProperties withDisableAadAuth(Boolean disableAadAuth) {
353370
return this;
354371
}
355372

373+
/**
374+
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
375+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
376+
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
377+
*
378+
* @return the regionEndpointEnabled value.
379+
*/
380+
public String regionEndpointEnabled() {
381+
return this.regionEndpointEnabled;
382+
}
383+
384+
/**
385+
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
386+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
387+
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
388+
*
389+
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
390+
* @return the WebPubSubProperties object itself.
391+
*/
392+
public WebPubSubProperties withRegionEndpointEnabled(String regionEndpointEnabled) {
393+
this.regionEndpointEnabled = regionEndpointEnabled;
394+
return this;
395+
}
396+
397+
/**
398+
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
399+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
400+
*
401+
* @return the resourceStopped value.
402+
*/
403+
public String resourceStopped() {
404+
return this.resourceStopped;
405+
}
406+
407+
/**
408+
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
409+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
410+
*
411+
* @param resourceStopped the resourceStopped value to set.
412+
* @return the WebPubSubProperties object itself.
413+
*/
414+
public WebPubSubProperties withResourceStopped(String resourceStopped) {
415+
this.resourceStopped = resourceStopped;
416+
return this;
417+
}
418+
356419
/**
357420
* Validates the instance.
358421
*

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubResourceInner.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,58 @@ public WebPubSubResourceInner withDisableAadAuth(Boolean disableAadAuth) {
400400
return this;
401401
}
402402

403+
/**
404+
* Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
405+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
406+
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
407+
*
408+
* @return the regionEndpointEnabled value.
409+
*/
410+
public String regionEndpointEnabled() {
411+
return this.innerProperties() == null ? null : this.innerProperties().regionEndpointEnabled();
412+
}
413+
414+
/**
415+
* Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's
416+
* Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
417+
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
418+
*
419+
* @param regionEndpointEnabled the regionEndpointEnabled value to set.
420+
* @return the WebPubSubResourceInner object itself.
421+
*/
422+
public WebPubSubResourceInner withRegionEndpointEnabled(String regionEndpointEnabled) {
423+
if (this.innerProperties() == null) {
424+
this.innerProperties = new WebPubSubProperties();
425+
}
426+
this.innerProperties().withRegionEndpointEnabled(regionEndpointEnabled);
427+
return this;
428+
}
429+
430+
/**
431+
* Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
432+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
433+
*
434+
* @return the resourceStopped value.
435+
*/
436+
public String resourceStopped() {
437+
return this.innerProperties() == null ? null : this.innerProperties().resourceStopped();
438+
}
439+
440+
/**
441+
* Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane
442+
* of the resource is shutdown. When it's false, the data plane of the resource is started.
443+
*
444+
* @param resourceStopped the resourceStopped value to set.
445+
* @return the WebPubSubResourceInner object itself.
446+
*/
447+
public WebPubSubResourceInner withResourceStopped(String resourceStopped) {
448+
if (this.innerProperties() == null) {
449+
this.innerProperties = new WebPubSubProperties();
450+
}
451+
this.innerProperties().withResourceStopped(resourceStopped);
452+
return this;
453+
}
454+
403455
/**
404456
* Validates the instance.
405457
*

sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/ReplicaImpl.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ public ProvisioningState provisioningState() {
5656
return this.innerModel().provisioningState();
5757
}
5858

59+
public String regionEndpointEnabled() {
60+
return this.innerModel().regionEndpointEnabled();
61+
}
62+
63+
public String resourceStopped() {
64+
return this.innerModel().resourceStopped();
65+
}
66+
5967
public Region region() {
6068
return Region.fromName(this.regionName());
6169
}
@@ -189,4 +197,14 @@ public ReplicaImpl withSku(ResourceSku sku) {
189197
this.innerModel().withSku(sku);
190198
return this;
191199
}
200+
201+
public ReplicaImpl withRegionEndpointEnabled(String regionEndpointEnabled) {
202+
this.innerModel().withRegionEndpointEnabled(regionEndpointEnabled);
203+
return this;
204+
}
205+
206+
public ReplicaImpl withResourceStopped(String resourceStopped) {
207+
this.innerModel().withResourceStopped(resourceStopped);
208+
return this;
209+
}
192210
}

0 commit comments

Comments
 (0)