|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | +// Code generated by Microsoft (R) TypeSpec Code Generator. |
| 4 | + |
| 5 | +package com.azure.resourcemanager.containerinstance.fluent; |
| 6 | + |
| 7 | +import com.azure.core.annotation.ReturnType; |
| 8 | +import com.azure.core.annotation.ServiceMethod; |
| 9 | +import com.azure.core.http.rest.PagedFlux; |
| 10 | +import com.azure.core.http.rest.PagedIterable; |
| 11 | +import com.azure.core.util.Context; |
| 12 | +import com.azure.resourcemanager.containerinstance.fluent.models.ContainerGroupProfileInner; |
| 13 | +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; |
| 14 | + |
| 15 | +/** |
| 16 | + * An instance of this class provides access to all the operations defined in CGProfilesOperationsClient. |
| 17 | + */ |
| 18 | +public interface CGProfilesOperationsClient extends InnerSupportsListing<ContainerGroupProfileInner> { |
| 19 | + /** |
| 20 | + * List container group profiles in a subscription. |
| 21 | + * |
| 22 | + * Gets a list of all container group profiles under a subscription. |
| 23 | + * |
| 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 ContainerGroupProfile list operation as paginated response with {@link PagedFlux}. |
| 27 | + */ |
| 28 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 29 | + PagedFlux<ContainerGroupProfileInner> listAsync(); |
| 30 | + |
| 31 | + /** |
| 32 | + * List container group profiles in a subscription. |
| 33 | + * |
| 34 | + * Gets a list of all container group profiles under a subscription. |
| 35 | + * |
| 36 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 37 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 38 | + * @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}. |
| 39 | + */ |
| 40 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 41 | + PagedIterable<ContainerGroupProfileInner> list(); |
| 42 | + |
| 43 | + /** |
| 44 | + * List container group profiles in a subscription. |
| 45 | + * |
| 46 | + * Gets a list of all container group profiles under a subscription. |
| 47 | + * |
| 48 | + * @param context The context to associate with this operation. |
| 49 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 50 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 51 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 52 | + * @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}. |
| 53 | + */ |
| 54 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 55 | + PagedIterable<ContainerGroupProfileInner> list(Context context); |
| 56 | + |
| 57 | + /** |
| 58 | + * List container group profiles in a resource group. |
| 59 | + * |
| 60 | + * Gets a list of all container group profiles under a resource group. |
| 61 | + * |
| 62 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 63 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 64 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 65 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 66 | + * @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedFlux}. |
| 67 | + */ |
| 68 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 69 | + PagedFlux<ContainerGroupProfileInner> listByResourceGroupAsync(String resourceGroupName); |
| 70 | + |
| 71 | + /** |
| 72 | + * List container group profiles in a resource group. |
| 73 | + * |
| 74 | + * Gets a list of all container group profiles under a resource group. |
| 75 | + * |
| 76 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 77 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 78 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 79 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 80 | + * @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}. |
| 81 | + */ |
| 82 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 83 | + PagedIterable<ContainerGroupProfileInner> listByResourceGroup(String resourceGroupName); |
| 84 | + |
| 85 | + /** |
| 86 | + * List container group profiles in a resource group. |
| 87 | + * |
| 88 | + * Gets a list of all container group profiles under a resource group. |
| 89 | + * |
| 90 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 91 | + * @param context The context to associate with this operation. |
| 92 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 93 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 94 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 95 | + * @return the response of a ContainerGroupProfile list operation as paginated response with {@link PagedIterable}. |
| 96 | + */ |
| 97 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 98 | + PagedIterable<ContainerGroupProfileInner> listByResourceGroup(String resourceGroupName, Context context); |
| 99 | +} |
0 commit comments