|
9 | 9 | import com.azure.core.http.rest.PagedFlux;
|
10 | 10 | import com.azure.core.http.rest.PagedIterable;
|
11 | 11 | import com.azure.core.http.rest.Response;
|
| 12 | +import com.azure.core.management.polling.PollResult; |
12 | 13 | import com.azure.core.util.Context;
|
| 14 | +import com.azure.core.util.polling.PollerFlux; |
| 15 | +import com.azure.core.util.polling.SyncPoller; |
| 16 | +import com.azure.resourcemanager.network.fluent.models.LoadBalancerHealthPerRuleInner; |
13 | 17 | import com.azure.resourcemanager.network.fluent.models.LoadBalancingRuleInner;
|
| 18 | +import java.nio.ByteBuffer; |
| 19 | +import reactor.core.publisher.Flux; |
14 | 20 | import reactor.core.publisher.Mono;
|
15 | 21 |
|
16 | 22 | /**
|
@@ -117,4 +123,111 @@ Response<LoadBalancingRuleInner> getWithResponse(String resourceGroupName, Strin
|
117 | 123 | */
|
118 | 124 | @ServiceMethod(returns = ReturnType.SINGLE)
|
119 | 125 | LoadBalancingRuleInner get(String resourceGroupName, String loadBalancerName, String loadBalancingRuleName);
|
| 126 | + |
| 127 | + /** |
| 128 | + * Get health details of a load balancing rule. |
| 129 | + * |
| 130 | + * @param groupName The name of the resource group. |
| 131 | + * @param loadBalancerName The name of the load balancer. |
| 132 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 133 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 134 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 135 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 136 | + * @return health details of a load balancing rule along with {@link Response} on successful completion of |
| 137 | + * {@link Mono}. |
| 138 | + */ |
| 139 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 140 | + Mono<Response<Flux<ByteBuffer>>> healthWithResponseAsync(String groupName, String loadBalancerName, |
| 141 | + String loadBalancingRuleName); |
| 142 | + |
| 143 | + /** |
| 144 | + * Get health details of a load balancing rule. |
| 145 | + * |
| 146 | + * @param groupName The name of the resource group. |
| 147 | + * @param loadBalancerName The name of the load balancer. |
| 148 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 149 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 150 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 151 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 152 | + * @return the {@link PollerFlux} for polling of health details of a load balancing rule. |
| 153 | + */ |
| 154 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 155 | + PollerFlux<PollResult<LoadBalancerHealthPerRuleInner>, LoadBalancerHealthPerRuleInner> |
| 156 | + beginHealthAsync(String groupName, String loadBalancerName, String loadBalancingRuleName); |
| 157 | + |
| 158 | + /** |
| 159 | + * Get health details of a load balancing rule. |
| 160 | + * |
| 161 | + * @param groupName The name of the resource group. |
| 162 | + * @param loadBalancerName The name of the load balancer. |
| 163 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 164 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 165 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 166 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 167 | + * @return the {@link SyncPoller} for polling of health details of a load balancing rule. |
| 168 | + */ |
| 169 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 170 | + SyncPoller<PollResult<LoadBalancerHealthPerRuleInner>, LoadBalancerHealthPerRuleInner> beginHealth(String groupName, |
| 171 | + String loadBalancerName, String loadBalancingRuleName); |
| 172 | + |
| 173 | + /** |
| 174 | + * Get health details of a load balancing rule. |
| 175 | + * |
| 176 | + * @param groupName The name of the resource group. |
| 177 | + * @param loadBalancerName The name of the load balancer. |
| 178 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 179 | + * @param context The context to associate with this operation. |
| 180 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 181 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 182 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 183 | + * @return the {@link SyncPoller} for polling of health details of a load balancing rule. |
| 184 | + */ |
| 185 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 186 | + SyncPoller<PollResult<LoadBalancerHealthPerRuleInner>, LoadBalancerHealthPerRuleInner> beginHealth(String groupName, |
| 187 | + String loadBalancerName, String loadBalancingRuleName, Context context); |
| 188 | + |
| 189 | + /** |
| 190 | + * Get health details of a load balancing rule. |
| 191 | + * |
| 192 | + * @param groupName The name of the resource group. |
| 193 | + * @param loadBalancerName The name of the load balancer. |
| 194 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 195 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 196 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 197 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 198 | + * @return health details of a load balancing rule on successful completion of {@link Mono}. |
| 199 | + */ |
| 200 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 201 | + Mono<LoadBalancerHealthPerRuleInner> healthAsync(String groupName, String loadBalancerName, |
| 202 | + String loadBalancingRuleName); |
| 203 | + |
| 204 | + /** |
| 205 | + * Get health details of a load balancing rule. |
| 206 | + * |
| 207 | + * @param groupName The name of the resource group. |
| 208 | + * @param loadBalancerName The name of the load balancer. |
| 209 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 210 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 211 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 212 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 213 | + * @return health details of a load balancing rule. |
| 214 | + */ |
| 215 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 216 | + LoadBalancerHealthPerRuleInner health(String groupName, String loadBalancerName, String loadBalancingRuleName); |
| 217 | + |
| 218 | + /** |
| 219 | + * Get health details of a load balancing rule. |
| 220 | + * |
| 221 | + * @param groupName The name of the resource group. |
| 222 | + * @param loadBalancerName The name of the load balancer. |
| 223 | + * @param loadBalancingRuleName The name of the load balancing rule. |
| 224 | + * @param context The context to associate with this operation. |
| 225 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 226 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 227 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 228 | + * @return health details of a load balancing rule. |
| 229 | + */ |
| 230 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 231 | + LoadBalancerHealthPerRuleInner health(String groupName, String loadBalancerName, String loadBalancingRuleName, |
| 232 | + Context context); |
120 | 233 | }
|
0 commit comments