|
| 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.containerservicefleet.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.containerservicefleet.fluent.models.FleetUpdateStrategyInner; |
| 15 | + |
| 16 | +/** An instance of this class provides access to all the operations defined in FleetUpdateStrategiesClient. */ |
| 17 | +public interface FleetUpdateStrategiesClient { |
| 18 | + /** |
| 19 | + * List FleetUpdateStrategy resources by Fleet. |
| 20 | + * |
| 21 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 22 | + * @param fleetName The name of the Fleet resource. |
| 23 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 24 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 25 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 26 | + * @return the response of a FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}. |
| 27 | + */ |
| 28 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 29 | + PagedIterable<FleetUpdateStrategyInner> listByFleet(String resourceGroupName, String fleetName); |
| 30 | + |
| 31 | + /** |
| 32 | + * List FleetUpdateStrategy resources by Fleet. |
| 33 | + * |
| 34 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 35 | + * @param fleetName The name of the Fleet resource. |
| 36 | + * @param context The context to associate with this operation. |
| 37 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 38 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 39 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 40 | + * @return the response of a FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}. |
| 41 | + */ |
| 42 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 43 | + PagedIterable<FleetUpdateStrategyInner> listByFleet(String resourceGroupName, String fleetName, Context context); |
| 44 | + |
| 45 | + /** |
| 46 | + * Get a FleetUpdateStrategy. |
| 47 | + * |
| 48 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 49 | + * @param fleetName The name of the Fleet resource. |
| 50 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 51 | + * @param context The context to associate with this operation. |
| 52 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 53 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 54 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 55 | + * @return a FleetUpdateStrategy along with {@link Response}. |
| 56 | + */ |
| 57 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 58 | + Response<FleetUpdateStrategyInner> getWithResponse( |
| 59 | + String resourceGroupName, String fleetName, String updateStrategyName, Context context); |
| 60 | + |
| 61 | + /** |
| 62 | + * Get a FleetUpdateStrategy. |
| 63 | + * |
| 64 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 65 | + * @param fleetName The name of the Fleet resource. |
| 66 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 67 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 68 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 69 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 70 | + * @return a FleetUpdateStrategy. |
| 71 | + */ |
| 72 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 73 | + FleetUpdateStrategyInner get(String resourceGroupName, String fleetName, String updateStrategyName); |
| 74 | + |
| 75 | + /** |
| 76 | + * Create a FleetUpdateStrategy. |
| 77 | + * |
| 78 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 79 | + * @param fleetName The name of the Fleet resource. |
| 80 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 81 | + * @param resource Resource create parameters. |
| 82 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 83 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 84 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 85 | + * @return the {@link SyncPoller} for polling of defines a multi-stage process to perform update operations across |
| 86 | + * members of a Fleet. |
| 87 | + */ |
| 88 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 89 | + SyncPoller<PollResult<FleetUpdateStrategyInner>, FleetUpdateStrategyInner> beginCreateOrUpdate( |
| 90 | + String resourceGroupName, String fleetName, String updateStrategyName, FleetUpdateStrategyInner resource); |
| 91 | + |
| 92 | + /** |
| 93 | + * Create a FleetUpdateStrategy. |
| 94 | + * |
| 95 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 96 | + * @param fleetName The name of the Fleet resource. |
| 97 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 98 | + * @param resource Resource create parameters. |
| 99 | + * @param ifMatch The request should only proceed if an entity matches this string. |
| 100 | + * @param ifNoneMatch The request should only proceed if no entity matches this string. |
| 101 | + * @param context The context to associate with this operation. |
| 102 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 103 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 104 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 105 | + * @return the {@link SyncPoller} for polling of defines a multi-stage process to perform update operations across |
| 106 | + * members of a Fleet. |
| 107 | + */ |
| 108 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 109 | + SyncPoller<PollResult<FleetUpdateStrategyInner>, FleetUpdateStrategyInner> beginCreateOrUpdate( |
| 110 | + String resourceGroupName, |
| 111 | + String fleetName, |
| 112 | + String updateStrategyName, |
| 113 | + FleetUpdateStrategyInner resource, |
| 114 | + String ifMatch, |
| 115 | + String ifNoneMatch, |
| 116 | + Context context); |
| 117 | + |
| 118 | + /** |
| 119 | + * Create a FleetUpdateStrategy. |
| 120 | + * |
| 121 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 122 | + * @param fleetName The name of the Fleet resource. |
| 123 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 124 | + * @param resource Resource create parameters. |
| 125 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 126 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 127 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 128 | + * @return defines a multi-stage process to perform update operations across members of a Fleet. |
| 129 | + */ |
| 130 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 131 | + FleetUpdateStrategyInner createOrUpdate( |
| 132 | + String resourceGroupName, String fleetName, String updateStrategyName, FleetUpdateStrategyInner resource); |
| 133 | + |
| 134 | + /** |
| 135 | + * Create a FleetUpdateStrategy. |
| 136 | + * |
| 137 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 138 | + * @param fleetName The name of the Fleet resource. |
| 139 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 140 | + * @param resource Resource create parameters. |
| 141 | + * @param ifMatch The request should only proceed if an entity matches this string. |
| 142 | + * @param ifNoneMatch The request should only proceed if no entity matches this string. |
| 143 | + * @param context The context to associate with this operation. |
| 144 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 145 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 146 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 147 | + * @return defines a multi-stage process to perform update operations across members of a Fleet. |
| 148 | + */ |
| 149 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 150 | + FleetUpdateStrategyInner createOrUpdate( |
| 151 | + String resourceGroupName, |
| 152 | + String fleetName, |
| 153 | + String updateStrategyName, |
| 154 | + FleetUpdateStrategyInner resource, |
| 155 | + String ifMatch, |
| 156 | + String ifNoneMatch, |
| 157 | + Context context); |
| 158 | + |
| 159 | + /** |
| 160 | + * Delete a FleetUpdateStrategy. |
| 161 | + * |
| 162 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 163 | + * @param fleetName The name of the Fleet resource. |
| 164 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 165 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 166 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 167 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 168 | + * @return the {@link SyncPoller} for polling of long-running operation. |
| 169 | + */ |
| 170 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 171 | + SyncPoller<PollResult<Void>, Void> beginDelete( |
| 172 | + String resourceGroupName, String fleetName, String updateStrategyName); |
| 173 | + |
| 174 | + /** |
| 175 | + * Delete a FleetUpdateStrategy. |
| 176 | + * |
| 177 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 178 | + * @param fleetName The name of the Fleet resource. |
| 179 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 180 | + * @param ifMatch The request should only proceed if an entity matches this string. |
| 181 | + * @param context The context to associate with this operation. |
| 182 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 183 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 184 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 185 | + * @return the {@link SyncPoller} for polling of long-running operation. |
| 186 | + */ |
| 187 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 188 | + SyncPoller<PollResult<Void>, Void> beginDelete( |
| 189 | + String resourceGroupName, String fleetName, String updateStrategyName, String ifMatch, Context context); |
| 190 | + |
| 191 | + /** |
| 192 | + * Delete a FleetUpdateStrategy. |
| 193 | + * |
| 194 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 195 | + * @param fleetName The name of the Fleet resource. |
| 196 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 197 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 198 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 199 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 200 | + */ |
| 201 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 202 | + void delete(String resourceGroupName, String fleetName, String updateStrategyName); |
| 203 | + |
| 204 | + /** |
| 205 | + * Delete a FleetUpdateStrategy. |
| 206 | + * |
| 207 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 208 | + * @param fleetName The name of the Fleet resource. |
| 209 | + * @param updateStrategyName The name of the UpdateStrategy resource. |
| 210 | + * @param ifMatch The request should only proceed if an entity matches this string. |
| 211 | + * @param context The context to associate with this operation. |
| 212 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 213 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 214 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 215 | + */ |
| 216 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 217 | + void delete(String resourceGroupName, String fleetName, String updateStrategyName, String ifMatch, Context context); |
| 218 | +} |
0 commit comments