|
| 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.signalr.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.signalr.fluent.models.CustomCertificateInner; |
| 15 | + |
| 16 | +/** An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. */ |
| 17 | +public interface SignalRCustomCertificatesClient { |
| 18 | + /** |
| 19 | + * List all custom certificates. |
| 20 | + * |
| 21 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 22 | + * from the Azure Resource Manager API or the portal. |
| 23 | + * @param resourceName The name of the resource. |
| 24 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 25 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 26 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 27 | + * @return custom certificates list as paginated response with {@link PagedIterable}. |
| 28 | + */ |
| 29 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 30 | + PagedIterable<CustomCertificateInner> list(String resourceGroupName, String resourceName); |
| 31 | + |
| 32 | + /** |
| 33 | + * List all custom certificates. |
| 34 | + * |
| 35 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 36 | + * from the Azure Resource Manager API or the portal. |
| 37 | + * @param resourceName The name of the resource. |
| 38 | + * @param context The context to associate with this operation. |
| 39 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 40 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 41 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 42 | + * @return custom certificates list as paginated response with {@link PagedIterable}. |
| 43 | + */ |
| 44 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 45 | + PagedIterable<CustomCertificateInner> list(String resourceGroupName, String resourceName, Context context); |
| 46 | + |
| 47 | + /** |
| 48 | + * Get a custom certificate. |
| 49 | + * |
| 50 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 51 | + * from the Azure Resource Manager API or the portal. |
| 52 | + * @param resourceName The name of the resource. |
| 53 | + * @param certificateName Custom certificate name. |
| 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 a custom certificate. |
| 58 | + */ |
| 59 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 60 | + CustomCertificateInner get(String resourceGroupName, String resourceName, String certificateName); |
| 61 | + |
| 62 | + /** |
| 63 | + * Get a custom certificate. |
| 64 | + * |
| 65 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 66 | + * from the Azure Resource Manager API or the portal. |
| 67 | + * @param resourceName The name of the resource. |
| 68 | + * @param certificateName Custom certificate name. |
| 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 a custom certificate along with {@link Response}. |
| 74 | + */ |
| 75 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 76 | + Response<CustomCertificateInner> getWithResponse( |
| 77 | + String resourceGroupName, String resourceName, String certificateName, Context context); |
| 78 | + |
| 79 | + /** |
| 80 | + * Create or update a custom certificate. |
| 81 | + * |
| 82 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 83 | + * from the Azure Resource Manager API or the portal. |
| 84 | + * @param resourceName The name of the resource. |
| 85 | + * @param certificateName Custom certificate name. |
| 86 | + * @param parameters A custom certificate. |
| 87 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 88 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 89 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 90 | + * @return the {@link SyncPoller} for polling of a custom certificate. |
| 91 | + */ |
| 92 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 93 | + SyncPoller<PollResult<CustomCertificateInner>, CustomCertificateInner> beginCreateOrUpdate( |
| 94 | + String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters); |
| 95 | + |
| 96 | + /** |
| 97 | + * Create or update a custom certificate. |
| 98 | + * |
| 99 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 100 | + * from the Azure Resource Manager API or the portal. |
| 101 | + * @param resourceName The name of the resource. |
| 102 | + * @param certificateName Custom certificate name. |
| 103 | + * @param parameters A custom certificate. |
| 104 | + * @param context The context to associate with this operation. |
| 105 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 106 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 107 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 108 | + * @return the {@link SyncPoller} for polling of a custom certificate. |
| 109 | + */ |
| 110 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 111 | + SyncPoller<PollResult<CustomCertificateInner>, CustomCertificateInner> beginCreateOrUpdate( |
| 112 | + String resourceGroupName, |
| 113 | + String resourceName, |
| 114 | + String certificateName, |
| 115 | + CustomCertificateInner parameters, |
| 116 | + Context context); |
| 117 | + |
| 118 | + /** |
| 119 | + * Create or update a custom certificate. |
| 120 | + * |
| 121 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 122 | + * from the Azure Resource Manager API or the portal. |
| 123 | + * @param resourceName The name of the resource. |
| 124 | + * @param certificateName Custom certificate name. |
| 125 | + * @param parameters A custom certificate. |
| 126 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 127 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 128 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 129 | + * @return a custom certificate. |
| 130 | + */ |
| 131 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 132 | + CustomCertificateInner createOrUpdate( |
| 133 | + String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters); |
| 134 | + |
| 135 | + /** |
| 136 | + * Create or update a custom certificate. |
| 137 | + * |
| 138 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 139 | + * from the Azure Resource Manager API or the portal. |
| 140 | + * @param resourceName The name of the resource. |
| 141 | + * @param certificateName Custom certificate name. |
| 142 | + * @param parameters A custom certificate. |
| 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 a custom certificate. |
| 148 | + */ |
| 149 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 150 | + CustomCertificateInner createOrUpdate( |
| 151 | + String resourceGroupName, |
| 152 | + String resourceName, |
| 153 | + String certificateName, |
| 154 | + CustomCertificateInner parameters, |
| 155 | + Context context); |
| 156 | + |
| 157 | + /** |
| 158 | + * Delete a custom certificate. |
| 159 | + * |
| 160 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 161 | + * from the Azure Resource Manager API or the portal. |
| 162 | + * @param resourceName The name of the resource. |
| 163 | + * @param certificateName Custom certificate name. |
| 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 | + */ |
| 168 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 169 | + void delete(String resourceGroupName, String resourceName, String certificateName); |
| 170 | + |
| 171 | + /** |
| 172 | + * Delete a custom certificate. |
| 173 | + * |
| 174 | + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value |
| 175 | + * from the Azure Resource Manager API or the portal. |
| 176 | + * @param resourceName The name of the resource. |
| 177 | + * @param certificateName Custom certificate name. |
| 178 | + * @param context The context to associate with this operation. |
| 179 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 180 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 181 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 182 | + * @return the {@link Response}. |
| 183 | + */ |
| 184 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 185 | + Response<Void> deleteWithResponse( |
| 186 | + String resourceGroupName, String resourceName, String certificateName, Context context); |
| 187 | +} |
0 commit comments