Skip to content

Commit

Permalink
CodeGen from PR 16045 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 15c8112ae5bfd31256935536aa6b95a307be4560 into c927d65e7def99dfd80157db5d5a1f5305c7a86b
  • Loading branch information
SDKAuto committed Sep 23, 2021
1 parent 0a4c37d commit 3e50344
Show file tree
Hide file tree
Showing 61 changed files with 3,324 additions and 926 deletions.
3 changes: 2 additions & 1 deletion sdk/webpubsub/azure-resourcemanager-webpubsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

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

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

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

Expand Down
5 changes: 2 additions & 3 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-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 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).

## 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.0.0-beta.1</version>
<version>1.0.0-beta.2</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/webpubsub/azure-resourcemanager-webpubsub/SAMPLE.md)


## Troubleshooting
Expand Down
2 changes: 1 addition & 1 deletion sdk/webpubsub/azure-resourcemanager-webpubsub/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 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-2021-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-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 @@ -23,13 +23,15 @@
import com.azure.resourcemanager.webpubsub.fluent.WebPubSubManagementClient;
import com.azure.resourcemanager.webpubsub.implementation.OperationsImpl;
import com.azure.resourcemanager.webpubsub.implementation.UsagesImpl;
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubHubsImpl;
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubManagementClientBuilder;
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubPrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubPrivateLinkResourcesImpl;
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubSharedPrivateLinkResourcesImpl;
import com.azure.resourcemanager.webpubsub.implementation.WebPubSubsImpl;
import com.azure.resourcemanager.webpubsub.models.Operations;
import com.azure.resourcemanager.webpubsub.models.Usages;
import com.azure.resourcemanager.webpubsub.models.WebPubSubHubs;
import com.azure.resourcemanager.webpubsub.models.WebPubSubPrivateEndpointConnections;
import com.azure.resourcemanager.webpubsub.models.WebPubSubPrivateLinkResources;
import com.azure.resourcemanager.webpubsub.models.WebPubSubSharedPrivateLinkResources;
Expand All @@ -48,6 +50,8 @@ public final class WebPubSubManager {

private Usages usages;

private WebPubSubHubs webPubSubHubs;

private WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections;

private WebPubSubPrivateLinkResources webPubSubPrivateLinkResources;
Expand Down Expand Up @@ -253,6 +257,14 @@ public Usages usages() {
return usages;
}

/** @return Resource collection API of WebPubSubHubs. */
public WebPubSubHubs webPubSubHubs() {
if (this.webPubSubHubs == null) {
this.webPubSubHubs = new WebPubSubHubsImpl(clientObject.getWebPubSubHubs(), this);
}
return webPubSubHubs;
}

/** @return Resource collection API of WebPubSubPrivateEndpointConnections. */
public WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections() {
if (this.webPubSubPrivateEndpointConnections == null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.webpubsub.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubHubInner;

/** An instance of this class provides access to all the operations defined in WebPubSubHubsClient. */
public interface WebPubSubHubsClient {
/**
* List hub settings.
*
* @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 hub setting list.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<WebPubSubHubInner> list(String resourceGroupName, String resourceName);

/**
* List hub settings.
*
* @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 hub setting list.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<WebPubSubHubInner> list(String resourceGroupName, String resourceName, Context context);

/**
* Get a hub setting.
*
* @param hubName The hub name.
* @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 a hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WebPubSubHubInner get(String hubName, String resourceGroupName, String resourceName);

/**
* Get a hub setting.
*
* @param hubName The hub name.
* @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 a hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<WebPubSubHubInner> getWithResponse(
String hubName, String resourceGroupName, String resourceName, Context context);

/**
* Create or update a hub setting.
*
* @param hubName The hub name.
* @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 parameters The resource of WebPubSubHub and its properties.
* @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 a hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate(
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters);

/**
* Create or update a hub setting.
*
* @param hubName The hub name.
* @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 parameters The resource of WebPubSubHub and its properties.
* @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 a hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<WebPubSubHubInner>, WebPubSubHubInner> beginCreateOrUpdate(
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters, Context context);

/**
* Create or update a hub setting.
*
* @param hubName The hub name.
* @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 parameters The resource of WebPubSubHub and its properties.
* @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 a hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WebPubSubHubInner createOrUpdate(
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters);

/**
* Create or update a hub setting.
*
* @param hubName The hub name.
* @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 parameters The resource of WebPubSubHub and its properties.
* @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 a hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WebPubSubHubInner createOrUpdate(
String hubName, String resourceGroupName, String resourceName, WebPubSubHubInner parameters, Context context);

/**
* Delete a hub setting.
*
* @param hubName The hub name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDelete(String hubName, String resourceGroupName, String resourceName);

/**
* Delete a hub setting.
*
* @param hubName The hub name.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDelete(
String hubName, String resourceGroupName, String resourceName, Context context);

/**
* Delete a hub setting.
*
* @param hubName The hub name.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String hubName, String resourceGroupName, String resourceName);

/**
* Delete a hub setting.
*
* @param hubName The hub name.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String hubName, String resourceGroupName, String resourceName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ public interface WebPubSubManagementClient {
*/
UsagesClient getUsages();

/**
* Gets the WebPubSubHubsClient object to access its operations.
*
* @return the WebPubSubHubsClient object.
*/
WebPubSubHubsClient getWebPubSubHubs();

/**
* Gets the WebPubSubPrivateEndpointConnectionsClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.webpubsub.fluent.models.NameAvailabilityInner;
import com.azure.resourcemanager.webpubsub.fluent.models.SkuListInner;
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubKeysInner;
import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubResourceInner;
import com.azure.resourcemanager.webpubsub.models.NameAvailabilityParameters;
Expand Down Expand Up @@ -462,4 +463,33 @@ WebPubSubKeysInner 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 @@ -14,6 +14,7 @@
import com.azure.resourcemanager.webpubsub.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
Expand All @@ -39,6 +40,12 @@ public class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "properties.privateEndpoint")
private PrivateEndpoint privateEndpoint;

/*
* Group IDs
*/
@JsonProperty(value = "properties.groupIds", access = JsonProperty.Access.WRITE_ONLY)
private List<String> groupIds;

/*
* Connection state
*/
Expand Down Expand Up @@ -83,6 +90,15 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
return this;
}

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

/**
* Get the privateLinkServiceConnectionState property: Connection state.
*
Expand Down
Loading

0 comments on commit 3e50344

Please sign in to comment.