|
| 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 | +} |
0 commit comments