forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
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
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
242 changes: 242 additions & 0 deletions
242
...rc/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubEventHandlersClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.