|
| 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.resources.fluent; |
| 6 | + |
| 7 | +import com.azure.core.annotation.ReturnType; |
| 8 | +import com.azure.core.annotation.ServiceMethod; |
| 9 | +import com.azure.core.http.rest.Response; |
| 10 | +import com.azure.core.util.Context; |
| 11 | +import com.azure.resourcemanager.resources.fluent.models.DataBoundaryDefinitionInner; |
| 12 | +import com.azure.resourcemanager.resources.models.DefaultName; |
| 13 | +import reactor.core.publisher.Mono; |
| 14 | + |
| 15 | +/** |
| 16 | + * An instance of this class provides access to all the operations defined in DataBoundariesClient. |
| 17 | + */ |
| 18 | +public interface DataBoundariesClient { |
| 19 | + /** |
| 20 | + * Opt-in tenant to data boundary. |
| 21 | + * |
| 22 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 23 | + * @param dataBoundaryDefinition The data boundary to opt the tenant to. |
| 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 a data boundary definition along with {@link Response} on successful completion of {@link Mono}. |
| 28 | + */ |
| 29 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 30 | + Mono<Response<DataBoundaryDefinitionInner>> putWithResponseAsync(DefaultName defaultParameter, |
| 31 | + DataBoundaryDefinitionInner dataBoundaryDefinition); |
| 32 | + |
| 33 | + /** |
| 34 | + * Opt-in tenant to data boundary. |
| 35 | + * |
| 36 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 37 | + * @param dataBoundaryDefinition The data boundary to opt the tenant to. |
| 38 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 39 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 40 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 41 | + * @return a data boundary definition on successful completion of {@link Mono}. |
| 42 | + */ |
| 43 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 44 | + Mono<DataBoundaryDefinitionInner> putAsync(DefaultName defaultParameter, |
| 45 | + DataBoundaryDefinitionInner dataBoundaryDefinition); |
| 46 | + |
| 47 | + /** |
| 48 | + * Opt-in tenant to data boundary. |
| 49 | + * |
| 50 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 51 | + * @param dataBoundaryDefinition The data boundary to opt the tenant to. |
| 52 | + * @param context The context to associate with this operation. |
| 53 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 54 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 55 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 56 | + * @return a data boundary definition along with {@link Response}. |
| 57 | + */ |
| 58 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 59 | + Response<DataBoundaryDefinitionInner> putWithResponse(DefaultName defaultParameter, |
| 60 | + DataBoundaryDefinitionInner dataBoundaryDefinition, Context context); |
| 61 | + |
| 62 | + /** |
| 63 | + * Opt-in tenant to data boundary. |
| 64 | + * |
| 65 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 66 | + * @param dataBoundaryDefinition The data boundary to opt the tenant to. |
| 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 data boundary definition. |
| 71 | + */ |
| 72 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 73 | + DataBoundaryDefinitionInner put(DefaultName defaultParameter, DataBoundaryDefinitionInner dataBoundaryDefinition); |
| 74 | + |
| 75 | + /** |
| 76 | + * Get data boundary of tenant. |
| 77 | + * |
| 78 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 79 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 80 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 81 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 82 | + * @return data boundary of tenant along with {@link Response} on successful completion of {@link Mono}. |
| 83 | + */ |
| 84 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 85 | + Mono<Response<DataBoundaryDefinitionInner>> getTenantWithResponseAsync(DefaultName defaultParameter); |
| 86 | + |
| 87 | + /** |
| 88 | + * Get data boundary of tenant. |
| 89 | + * |
| 90 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 91 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 92 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 93 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 94 | + * @return data boundary of tenant on successful completion of {@link Mono}. |
| 95 | + */ |
| 96 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 97 | + Mono<DataBoundaryDefinitionInner> getTenantAsync(DefaultName defaultParameter); |
| 98 | + |
| 99 | + /** |
| 100 | + * Get data boundary of tenant. |
| 101 | + * |
| 102 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 103 | + * @param context The context to associate with this operation. |
| 104 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 105 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 106 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 107 | + * @return data boundary of tenant along with {@link Response}. |
| 108 | + */ |
| 109 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 110 | + Response<DataBoundaryDefinitionInner> getTenantWithResponse(DefaultName defaultParameter, Context context); |
| 111 | + |
| 112 | + /** |
| 113 | + * Get data boundary of tenant. |
| 114 | + * |
| 115 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 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 data boundary of tenant. |
| 120 | + */ |
| 121 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 122 | + DataBoundaryDefinitionInner getTenant(DefaultName defaultParameter); |
| 123 | + |
| 124 | + /** |
| 125 | + * Get data boundary at specified scope. |
| 126 | + * |
| 127 | + * @param scope The scope at which the operation is performed. |
| 128 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 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 | + * @return data boundary at specified scope along with {@link Response} on successful completion of {@link Mono}. |
| 133 | + */ |
| 134 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 135 | + Mono<Response<DataBoundaryDefinitionInner>> getScopeWithResponseAsync(String scope, DefaultName defaultParameter); |
| 136 | + |
| 137 | + /** |
| 138 | + * Get data boundary at specified scope. |
| 139 | + * |
| 140 | + * @param scope The scope at which the operation is performed. |
| 141 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 142 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 143 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 144 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 145 | + * @return data boundary at specified scope on successful completion of {@link Mono}. |
| 146 | + */ |
| 147 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 148 | + Mono<DataBoundaryDefinitionInner> getScopeAsync(String scope, DefaultName defaultParameter); |
| 149 | + |
| 150 | + /** |
| 151 | + * Get data boundary at specified scope. |
| 152 | + * |
| 153 | + * @param scope The scope at which the operation is performed. |
| 154 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 155 | + * @param context The context to associate with this operation. |
| 156 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 157 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 158 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 159 | + * @return data boundary at specified scope along with {@link Response}. |
| 160 | + */ |
| 161 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 162 | + Response<DataBoundaryDefinitionInner> getScopeWithResponse(String scope, DefaultName defaultParameter, |
| 163 | + Context context); |
| 164 | + |
| 165 | + /** |
| 166 | + * Get data boundary at specified scope. |
| 167 | + * |
| 168 | + * @param scope The scope at which the operation is performed. |
| 169 | + * @param defaultParameter Default string modeled as parameter for auto generation to work correctly. |
| 170 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 171 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 172 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 173 | + * @return data boundary at specified scope. |
| 174 | + */ |
| 175 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 176 | + DataBoundaryDefinitionInner getScope(String scope, DefaultName defaultParameter); |
| 177 | +} |
0 commit comments