|
| 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.providerhub.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.providerhub.fluent.models.AuthorizedApplicationInner; |
| 15 | +import java.util.UUID; |
| 16 | + |
| 17 | +/** |
| 18 | + * An instance of this class provides access to all the operations defined in AuthorizedApplicationsClient. |
| 19 | + */ |
| 20 | +public interface AuthorizedApplicationsClient { |
| 21 | + /** |
| 22 | + * Gets the authorized application details. |
| 23 | + * |
| 24 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 25 | + * @param applicationId The application ID. |
| 26 | + * @param context The context to associate with this operation. |
| 27 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 28 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 29 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 30 | + * @return the authorized application details along with {@link Response}. |
| 31 | + */ |
| 32 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 33 | + Response<AuthorizedApplicationInner> getWithResponse(String providerNamespace, UUID applicationId, Context context); |
| 34 | + |
| 35 | + /** |
| 36 | + * Gets the authorized application details. |
| 37 | + * |
| 38 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 39 | + * @param applicationId The application ID. |
| 40 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 41 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 42 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 43 | + * @return the authorized application details. |
| 44 | + */ |
| 45 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 46 | + AuthorizedApplicationInner get(String providerNamespace, UUID applicationId); |
| 47 | + |
| 48 | + /** |
| 49 | + * Creates or updates the authorized application. |
| 50 | + * |
| 51 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 52 | + * @param applicationId The application ID. |
| 53 | + * @param properties The authorized application properties supplied to the CreateOrUpdate operation. |
| 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 the {@link SyncPoller} for polling of long-running operation. |
| 58 | + */ |
| 59 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 60 | + SyncPoller<PollResult<AuthorizedApplicationInner>, AuthorizedApplicationInner> |
| 61 | + beginCreateOrUpdate(String providerNamespace, UUID applicationId, AuthorizedApplicationInner properties); |
| 62 | + |
| 63 | + /** |
| 64 | + * Creates or updates the authorized application. |
| 65 | + * |
| 66 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 67 | + * @param applicationId The application ID. |
| 68 | + * @param properties The authorized application properties supplied to the CreateOrUpdate operation. |
| 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 the {@link SyncPoller} for polling of long-running operation. |
| 74 | + */ |
| 75 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 76 | + SyncPoller<PollResult<AuthorizedApplicationInner>, AuthorizedApplicationInner> beginCreateOrUpdate( |
| 77 | + String providerNamespace, UUID applicationId, AuthorizedApplicationInner properties, Context context); |
| 78 | + |
| 79 | + /** |
| 80 | + * Creates or updates the authorized application. |
| 81 | + * |
| 82 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 83 | + * @param applicationId The application ID. |
| 84 | + * @param properties The authorized application properties supplied to the CreateOrUpdate operation. |
| 85 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 86 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 87 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 88 | + * @return the response. |
| 89 | + */ |
| 90 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 91 | + AuthorizedApplicationInner createOrUpdate(String providerNamespace, UUID applicationId, |
| 92 | + AuthorizedApplicationInner properties); |
| 93 | + |
| 94 | + /** |
| 95 | + * Creates or updates the authorized application. |
| 96 | + * |
| 97 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 98 | + * @param applicationId The application ID. |
| 99 | + * @param properties The authorized application properties supplied to the CreateOrUpdate operation. |
| 100 | + * @param context The context to associate with this operation. |
| 101 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 102 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 103 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 104 | + * @return the response. |
| 105 | + */ |
| 106 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 107 | + AuthorizedApplicationInner createOrUpdate(String providerNamespace, UUID applicationId, |
| 108 | + AuthorizedApplicationInner properties, Context context); |
| 109 | + |
| 110 | + /** |
| 111 | + * Deletes an authorized application. |
| 112 | + * |
| 113 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 114 | + * @param applicationId The application ID. |
| 115 | + * @param context The context to associate with this operation. |
| 116 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 117 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 118 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 119 | + * @return the {@link Response}. |
| 120 | + */ |
| 121 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 122 | + Response<Void> deleteWithResponse(String providerNamespace, UUID applicationId, Context context); |
| 123 | + |
| 124 | + /** |
| 125 | + * Deletes an authorized application. |
| 126 | + * |
| 127 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 128 | + * @param applicationId The application ID. |
| 129 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 130 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 131 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 132 | + */ |
| 133 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 134 | + void delete(String providerNamespace, UUID applicationId); |
| 135 | + |
| 136 | + /** |
| 137 | + * Gets the list of the authorized applications in the provider namespace. |
| 138 | + * |
| 139 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 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 the list of the authorized applications in the provider namespace as paginated response with |
| 144 | + * {@link PagedIterable}. |
| 145 | + */ |
| 146 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 147 | + PagedIterable<AuthorizedApplicationInner> list(String providerNamespace); |
| 148 | + |
| 149 | + /** |
| 150 | + * Gets the list of the authorized applications in the provider namespace. |
| 151 | + * |
| 152 | + * @param providerNamespace The name of the resource provider hosted within ProviderHub. |
| 153 | + * @param context The context to associate with this operation. |
| 154 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 155 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 156 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 157 | + * @return the list of the authorized applications in the provider namespace as paginated response with |
| 158 | + * {@link PagedIterable}. |
| 159 | + */ |
| 160 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 161 | + PagedIterable<AuthorizedApplicationInner> list(String providerNamespace, Context context); |
| 162 | +} |
0 commit comments