Skip to content

Commit 3e50344

Browse files
author
SDKAuto
committed
CodeGen from PR 16045 in Azure/azure-rest-api-specs
Merge 15c8112ae5bfd31256935536aa6b95a307be4560 into c927d65e7def99dfd80157db5d5a1f5305c7a86b
1 parent 0a4c37d commit 3e50344

File tree

61 files changed

+3324
-926
lines changed

Some content is hidden

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

61 files changed

+3324
-926
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2021-09-23)
44

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-2021-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.1 (2021-07-09)
78

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

Lines changed: 2 additions & 3 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-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).
5+
This package contains Microsoft Azure SDK for WebPubSub Management SDK. REST API for Azure WebPubSub 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).
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.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on
7474

7575
## Examples
7676

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

7978

8079
## Troubleshooting

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for WebPubSub Management</name>
16-
<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-2021-06-01-preview.</description>
16+
<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-2021-10-01.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
import com.azure.resourcemanager.webpubsub.fluent.WebPubSubManagementClient;
2424
import com.azure.resourcemanager.webpubsub.implementation.OperationsImpl;
2525
import com.azure.resourcemanager.webpubsub.implementation.UsagesImpl;
26+
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubHubsImpl;
2627
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubManagementClientBuilder;
2728
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubPrivateEndpointConnectionsImpl;
2829
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubPrivateLinkResourcesImpl;
2930
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubSharedPrivateLinkResourcesImpl;
3031
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubsImpl;
3132
import com.azure.resourcemanager.webpubsub.models.Operations;
3233
import com.azure.resourcemanager.webpubsub.models.Usages;
34+
import com.azure.resourcemanager.webpubsub.models.WebPubSubHubs;
3335
import com.azure.resourcemanager.webpubsub.models.WebPubSubPrivateEndpointConnections;
3436
import com.azure.resourcemanager.webpubsub.models.WebPubSubPrivateLinkResources;
3537
import com.azure.resourcemanager.webpubsub.models.WebPubSubSharedPrivateLinkResources;
@@ -48,6 +50,8 @@ public final class WebPubSubManager {
4850

4951
private Usages usages;
5052

53+
private WebPubSubHubs webPubSubHubs;
54+
5155
private WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections;
5256

5357
private WebPubSubPrivateLinkResources webPubSubPrivateLinkResources;
@@ -253,6 +257,14 @@ public Usages usages() {
253257
return usages;
254258
}
255259

260+
/** @return Resource collection API of WebPubSubHubs. */
261+
public WebPubSubHubs webPubSubHubs() {
262+
if (this.webPubSubHubs == null) {
263+
this.webPubSubHubs = new WebPubSubHubsImpl(clientObject.getWebPubSubHubs(), this);
264+
}
265+
return webPubSubHubs;
266+
}
267+
256268
/** @return Resource collection API of WebPubSubPrivateEndpointConnections. */
257269
public WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections() {
258270
if (this.webPubSubPrivateEndpointConnections == null) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.webpubsub.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.management.polling.PollResult;
12+
import com.azure.core.util.Context;
13+
import com.azure.core.util.polling.SyncPoller;
14+
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubHubInner;
15+
16+
/** An instance of this class provides access to all the operations defined in WebPubSubHubsClient. */
17+
public interface WebPubSubHubsClient {
18+
/**
19+
* List hub settings.
20+
*
21+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
22+
* from the Azure Resource Manager API or the portal.
23+
* @param resourceName The name of the resource.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation.
25+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
26+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27+
* @return hub setting list.
28+
*/
29+
@ServiceMethod(returns = ReturnType.COLLECTION)
30+
PagedIterable<WebPubSubHubInner> list(String resourceGroupName, String resourceName);
31+
32+
/**
33+
* List hub settings.
34+
*
35+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
36+
* from the Azure Resource Manager API or the portal.
37+
* @param resourceName The name of the resource.
38+
* @param context The context to associate with this operation.
39+
* @throws IllegalArgumentException thrown if parameters fail the validation.
40+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
41+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
42+
* @return hub setting list.
43+
*/
44+
@ServiceMethod(returns = ReturnType.COLLECTION)
45+
PagedIterable<WebPubSubHubInner> list(String resourceGroupName, String resourceName, Context context);
46+
47+
/**
48+
* Get a hub setting.
49+
*
50+
* @param hubName The hub name.
51+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
52+
* from the Azure Resource Manager API or the portal.
53+
* @param resourceName The name of the resource.
54+
* @throws IllegalArgumentException thrown if parameters fail the validation.
55+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
56+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57+
* @return a hub setting.
58+
*/
59+
@ServiceMethod(returns = ReturnType.SINGLE)
60+
WebPubSubHubInner get(String hubName, String resourceGroupName, String resourceName);
61+
62+
/**
63+
* Get a hub setting.
64+
*
65+
* @param hubName The hub name.
66+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
67+
* from the Azure Resource Manager API or the portal.
68+
* @param resourceName The name of the resource.
69+
* @param context The context to associate with this operation.
70+
* @throws IllegalArgumentException thrown if parameters fail the validation.
71+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
72+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
73+
* @return a hub setting.
74+
*/
75+
@ServiceMethod(returns = ReturnType.SINGLE)
76+
Response<WebPubSubHubInner> getWithResponse(
77+
String hubName, String resourceGroupName, String resourceName, Context context);
78+
79+
/**
80+
* Create or update a hub setting.
81+
*
82+
* @param hubName The hub name.
83+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
84+
* from the Azure Resource Manager API or the portal.
85+
* @param resourceName The name of the resource.
86+
* @param parameters The resource of WebPubSubHub and its properties.
87+
* @throws IllegalArgumentException thrown if parameters fail the validation.
88+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
89+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
90+
* @return a hub setting.
91+
*/
92+
@ServiceMethod(returns = ReturnType.SINGLE)
93+
SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate(
94+
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters);
95+
96+
/**
97+
* Create or update a hub setting.
98+
*
99+
* @param hubName The hub name.
100+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
101+
* from the Azure Resource Manager API or the portal.
102+
* @param resourceName The name of the resource.
103+
* @param parameters The resource of WebPubSubHub and its properties.
104+
* @param context The context to associate with this operation.
105+
* @throws IllegalArgumentException thrown if parameters fail the validation.
106+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
107+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
108+
* @return a hub setting.
109+
*/
110+
@ServiceMethod(returns = ReturnType.SINGLE)
111+
SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate(
112+
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters, Context context);
113+
114+
/**
115+
* Create or update a hub setting.
116+
*
117+
* @param hubName The hub name.
118+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
119+
* from the Azure Resource Manager API or the portal.
120+
* @param resourceName The name of the resource.
121+
* @param parameters The resource of WebPubSubHub and its properties.
122+
* @throws IllegalArgumentException thrown if parameters fail the validation.
123+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
124+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
125+
* @return a hub setting.
126+
*/
127+
@ServiceMethod(returns = ReturnType.SINGLE)
128+
WebPubSubHubInner createOrUpdate(
129+
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters);
130+
131+
/**
132+
* Create or update a hub setting.
133+
*
134+
* @param hubName The hub name.
135+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
136+
* from the Azure Resource Manager API or the portal.
137+
* @param resourceName The name of the resource.
138+
* @param parameters The resource of WebPubSubHub and its properties.
139+
* @param context The context to associate with this operation.
140+
* @throws IllegalArgumentException thrown if parameters fail the validation.
141+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
142+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
143+
* @return a hub setting.
144+
*/
145+
@ServiceMethod(returns = ReturnType.SINGLE)
146+
WebPubSubHubInner createOrUpdate(
147+
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters, Context context);
148+
149+
/**
150+
* Delete a hub setting.
151+
*
152+
* @param hubName The hub name.
153+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
154+
* from the Azure Resource Manager API or the portal.
155+
* @param resourceName The name of the resource.
156+
* @throws IllegalArgumentException thrown if parameters fail the validation.
157+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
158+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
159+
* @return the completion.
160+
*/
161+
@ServiceMethod(returns = ReturnType.SINGLE)
162+
SyncPoller<PollResult<Void>, Void> beginDelete(String hubName, String resourceGroupName, String resourceName);
163+
164+
/**
165+
* Delete a hub setting.
166+
*
167+
* @param hubName The hub name.
168+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
169+
* from the Azure Resource Manager API or the portal.
170+
* @param resourceName The name of the resource.
171+
* @param context The context to associate with this operation.
172+
* @throws IllegalArgumentException thrown if parameters fail the validation.
173+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
174+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
175+
* @return the completion.
176+
*/
177+
@ServiceMethod(returns = ReturnType.SINGLE)
178+
SyncPoller<PollResult<Void>, Void> beginDelete(
179+
String hubName, String resourceGroupName, String resourceName, Context context);
180+
181+
/**
182+
* Delete a hub setting.
183+
*
184+
* @param hubName The hub name.
185+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
186+
* from the Azure Resource Manager API or the portal.
187+
* @param resourceName The name of the resource.
188+
* @throws IllegalArgumentException thrown if parameters fail the validation.
189+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
190+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
191+
*/
192+
@ServiceMethod(returns = ReturnType.SINGLE)
193+
void delete(String hubName, String resourceGroupName, String resourceName);
194+
195+
/**
196+
* Delete a hub setting.
197+
*
198+
* @param hubName The hub name.
199+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
200+
* from the Azure Resource Manager API or the portal.
201+
* @param resourceName The name of the resource.
202+
* @param context The context to associate with this operation.
203+
* @throws IllegalArgumentException thrown if parameters fail the validation.
204+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
205+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
206+
*/
207+
@ServiceMethod(returns = ReturnType.SINGLE)
208+
void delete(String hubName, String resourceGroupName, String resourceName, Context context);
209+
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ public interface WebPubSubManagementClient {
6666
*/
6767
UsagesClient getUsages();
6868

69+
/**
70+
* Gets the WebPubSubHubsClient object to access its operations.
71+
*
72+
* @return the WebPubSubHubsClient object.
73+
*/
74+
WebPubSubHubsClient getWebPubSubHubs();
75+
6976
/**
7077
* Gets the WebPubSubPrivateEndpointConnectionsClient object to access its operations.
7178
*

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.webpubsub.fluent.models.NameAvailabilityInner;
15+
import com.azure.resourcemanager.webpubsub.fluent.models.SkuListInner;
1516
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubKeysInner;
1617
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubResourceInner;
1718
import com.azure.resourcemanager.webpubsub.models.NameAvailabilityParameters;
@@ -462,4 +463,33 @@ WebPubSubKeysInner regenerateKey(
462463
*/
463464
@ServiceMethod(returns = ReturnType.SINGLE)
464465
void restart(String resourceGroupName, String resourceName, Context context);
466+
467+
/**
468+
* List all available skus of the resource.
469+
*
470+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
471+
* from the Azure Resource Manager API or the portal.
472+
* @param resourceName The name of the resource.
473+
* @throws IllegalArgumentException thrown if parameters fail the validation.
474+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
475+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
476+
* @return the list skus operation response.
477+
*/
478+
@ServiceMethod(returns = ReturnType.SINGLE)
479+
SkuListInner listSkus(String resourceGroupName, String resourceName);
480+
481+
/**
482+
* List all available skus of the resource.
483+
*
484+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
485+
* from the Azure Resource Manager API or the portal.
486+
* @param resourceName The name of the resource.
487+
* @param context The context to associate with this operation.
488+
* @throws IllegalArgumentException thrown if parameters fail the validation.
489+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
490+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
491+
* @return the list skus operation response.
492+
*/
493+
@ServiceMethod(returns = ReturnType.SINGLE)
494+
Response<SkuListInner> listSkusWithResponse(String resourceGroupName, String resourceName, Context context);
465495
}

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
1515
import com.fasterxml.jackson.annotation.JsonIgnore;
1616
import com.fasterxml.jackson.annotation.JsonProperty;
17+
import java.util.List;
1718

1819
/** A private endpoint connection to an azure resource. */
1920
@JsonFlatten
@@ -39,6 +40,12 @@ public class PrivateEndpointConnectionInner extends ProxyResource {
3940
@JsonProperty(value = "properties.privateEndpoint")
4041
private PrivateEndpoint privateEndpoint;
4142

43+
/*
44+
* Group IDs
45+
*/
46+
@JsonProperty(value = "properties.groupIds", access = JsonProperty.Access.WRITE_ONLY)
47+
private List<String> groupIds;
48+
4249
/*
4350
* Connection state
4451
*/
@@ -83,6 +90,15 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
8390
return this;
8491
}
8592

93+
/**
94+
* Get the groupIds property: Group IDs.
95+
*
96+
* @return the groupIds value.
97+
*/
98+
public List<String> groupIds() {
99+
return this.groupIds;
100+
}
101+
86102
/**
87103
* Get the privateLinkServiceConnectionState property: Connection state.
88104
*

0 commit comments

Comments
 (0)