|
12 | 12 | import com.azure.core.util.Context; |
13 | 13 | import com.azure.core.util.polling.SyncPoller; |
14 | 14 | import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner; |
| 15 | +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; |
| 16 | +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku; |
15 | 17 |
|
16 | 18 | /** An instance of this class provides access to all the operations defined in DeploymentsClient. */ |
17 | 19 | public interface DeploymentsClient { |
@@ -148,6 +150,80 @@ DeploymentInner createOrUpdate( |
148 | 150 | DeploymentInner deployment, |
149 | 151 | Context context); |
150 | 152 |
|
| 153 | + /** |
| 154 | + * Update specified deployments associated with the Cognitive Services account. |
| 155 | + * |
| 156 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 157 | + * @param accountName The name of Cognitive Services account. |
| 158 | + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. |
| 159 | + * @param deployment The deployment properties. |
| 160 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 161 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 162 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 163 | + * @return the {@link SyncPoller} for polling of cognitive Services account deployment. |
| 164 | + */ |
| 165 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 166 | + SyncPoller<PollResult<DeploymentInner>, DeploymentInner> beginUpdate( |
| 167 | + String resourceGroupName, String accountName, String deploymentName, PatchResourceTagsAndSku deployment); |
| 168 | + |
| 169 | + /** |
| 170 | + * Update specified deployments associated with the Cognitive Services account. |
| 171 | + * |
| 172 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 173 | + * @param accountName The name of Cognitive Services account. |
| 174 | + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. |
| 175 | + * @param deployment The deployment properties. |
| 176 | + * @param context The context to associate with this operation. |
| 177 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 178 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 179 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 180 | + * @return the {@link SyncPoller} for polling of cognitive Services account deployment. |
| 181 | + */ |
| 182 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 183 | + SyncPoller<PollResult<DeploymentInner>, DeploymentInner> beginUpdate( |
| 184 | + String resourceGroupName, |
| 185 | + String accountName, |
| 186 | + String deploymentName, |
| 187 | + PatchResourceTagsAndSku deployment, |
| 188 | + Context context); |
| 189 | + |
| 190 | + /** |
| 191 | + * Update specified deployments associated with the Cognitive Services account. |
| 192 | + * |
| 193 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 194 | + * @param accountName The name of Cognitive Services account. |
| 195 | + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. |
| 196 | + * @param deployment The deployment properties. |
| 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 | + * @return cognitive Services account deployment. |
| 201 | + */ |
| 202 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 203 | + DeploymentInner update( |
| 204 | + String resourceGroupName, String accountName, String deploymentName, PatchResourceTagsAndSku deployment); |
| 205 | + |
| 206 | + /** |
| 207 | + * Update specified deployments associated with the Cognitive Services account. |
| 208 | + * |
| 209 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 210 | + * @param accountName The name of Cognitive Services account. |
| 211 | + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. |
| 212 | + * @param deployment The deployment properties. |
| 213 | + * @param context The context to associate with this operation. |
| 214 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 215 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 216 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 217 | + * @return cognitive Services account deployment. |
| 218 | + */ |
| 219 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 220 | + DeploymentInner update( |
| 221 | + String resourceGroupName, |
| 222 | + String accountName, |
| 223 | + String deploymentName, |
| 224 | + PatchResourceTagsAndSku deployment, |
| 225 | + Context context); |
| 226 | + |
151 | 227 | /** |
152 | 228 | * Deletes the specified deployment associated with the Cognitive Services account. |
153 | 229 | * |
@@ -204,4 +280,36 @@ SyncPoller<PollResult<Void>, Void> beginDelete( |
204 | 280 | */ |
205 | 281 | @ServiceMethod(returns = ReturnType.SINGLE) |
206 | 282 | void delete(String resourceGroupName, String accountName, String deploymentName, Context context); |
| 283 | + |
| 284 | + /** |
| 285 | + * Lists the specified deployments skus associated with the Cognitive Services account. |
| 286 | + * |
| 287 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 288 | + * @param accountName The name of Cognitive Services account. |
| 289 | + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. |
| 290 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 291 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 292 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 293 | + * @return the list of cognitive services accounts operation response as paginated response with {@link |
| 294 | + * PagedIterable}. |
| 295 | + */ |
| 296 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 297 | + PagedIterable<SkuResourceInner> listSkus(String resourceGroupName, String accountName, String deploymentName); |
| 298 | + |
| 299 | + /** |
| 300 | + * Lists the specified deployments skus associated with the Cognitive Services account. |
| 301 | + * |
| 302 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 303 | + * @param accountName The name of Cognitive Services account. |
| 304 | + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. |
| 305 | + * @param context The context to associate with this operation. |
| 306 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 307 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 308 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 309 | + * @return the list of cognitive services accounts operation response as paginated response with {@link |
| 310 | + * PagedIterable}. |
| 311 | + */ |
| 312 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 313 | + PagedIterable<SkuResourceInner> listSkus( |
| 314 | + String resourceGroupName, String accountName, String deploymentName, Context context); |
207 | 315 | } |
0 commit comments