Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 16045 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 209a110e9d28151790877559805254b980ab7776 into 69b3612c37fbea0b90834ce842a7369847b5f67a
SDKAuto committed Sep 15, 2021
1 parent 494ec4a commit c8c85d8
Showing 69 changed files with 5,418 additions and 925 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-15)

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

5 changes: 2 additions & 3 deletions sdk/webpubsub/azure-resourcemanager-webpubsub/README.md
Original file line number Diff line number Diff line change
@@ -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

@@ -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})
@@ -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
2 changes: 1 addition & 1 deletion sdk/webpubsub/azure-resourcemanager-webpubsub/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -23,13 +23,17 @@
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.WebPubSubEventHandlersImpl;
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.WebPubSubEventHandlers;
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;
@@ -48,6 +52,10 @@ public final class WebPubSubManager {

private Usages usages;

private WebPubSubHubs webPubSubHubs;

private WebPubSubEventHandlers webPubSubEventHandlers;

private WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections;

private WebPubSubPrivateLinkResources webPubSubPrivateLinkResources;
@@ -253,6 +261,23 @@ 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 WebPubSubEventHandlers. */
public WebPubSubEventHandlers webPubSubEventHandlers() {
if (this.webPubSubEventHandlers == null) {
this.webPubSubEventHandlers =
new WebPubSubEventHandlersImpl(clientObject.getWebPubSubEventHandlers(), this);
}
return webPubSubEventHandlers;
}

/** @return Resource collection API of WebPubSubPrivateEndpointConnections. */
public WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections() {
if (this.webPubSubPrivateEndpointConnections == null) {
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
// 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.EventHandlerInner;

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

/**
* List event handlers.
*
* @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 list of event handlers.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EventHandlerInner> list(
String hubName, String resourceGroupName, String resourceName, Context context);

/**
* Create or update an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 EventHandler 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 an event handler.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<EventHandlerInner>, EventHandlerInner> beginCreateOrUpdate(
String hubName,
String eventHandlerName,
String resourceGroupName,
String resourceName,
EventHandlerInner parameters);

/**
* Create or update an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 EventHandler 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 an event handler.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<EventHandlerInner>, EventHandlerInner> beginCreateOrUpdate(
String hubName,
String eventHandlerName,
String resourceGroupName,
String resourceName,
EventHandlerInner parameters,
Context context);

/**
* Create or update an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 EventHandler 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 an event handler.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EventHandlerInner createOrUpdate(
String hubName,
String eventHandlerName,
String resourceGroupName,
String resourceName,
EventHandlerInner parameters);

/**
* Create or update an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 EventHandler 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 an event handler.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EventHandlerInner createOrUpdate(
String hubName,
String eventHandlerName,
String resourceGroupName,
String resourceName,
EventHandlerInner parameters,
Context context);

/**
* Delete an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 eventHandlerName, String resourceGroupName, String resourceName);

/**
* Delete an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 eventHandlerName, String resourceGroupName, String resourceName, Context context);

/**
* Delete an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 eventHandlerName, String resourceGroupName, String resourceName);

/**
* Delete an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 eventHandlerName, String resourceGroupName, String resourceName, Context context);

/**
* Get an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 an event handler.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
EventHandlerInner get(String hubName, String eventHandlerName, String resourceGroupName, String resourceName);

/**
* Get an event handler.
*
* @param hubName The hub name.
* @param eventHandlerName The event handler 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 an event handler.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<EventHandlerInner> getWithResponse(
String hubName, String eventHandlerName, String resourceGroupName, String resourceName, Context context);
}
Loading

0 comments on commit c8c85d8

Please sign in to comment.