|
5 | 5 | package com._specs_.azure.clientgenerator.core.access;
|
6 | 6 |
|
7 | 7 | import com._specs_.azure.clientgenerator.core.access.implementation.InternalOperationsImpl;
|
| 8 | +import com._specs_.azure.clientgenerator.core.access.implementation.models.InternalDecoratorModelInInternal; |
| 9 | +import com._specs_.azure.clientgenerator.core.access.implementation.models.NoDecoratorModelInInternal; |
| 10 | +import com._specs_.azure.clientgenerator.core.access.implementation.models.PublicDecoratorModelInInternal; |
8 | 11 | import com.azure.core.annotation.Generated;
|
9 | 12 | import com.azure.core.annotation.ReturnType;
|
10 | 13 | import com.azure.core.annotation.ServiceClient;
|
|
16 | 19 | import com.azure.core.http.rest.RequestOptions;
|
17 | 20 | import com.azure.core.http.rest.Response;
|
18 | 21 | import com.azure.core.util.BinaryData;
|
| 22 | +import com.azure.core.util.FluxUtil; |
19 | 23 | import reactor.core.publisher.Mono;
|
20 | 24 |
|
21 | 25 | /** Initializes a new instance of the asynchronous AccessClient type. */
|
@@ -110,4 +114,73 @@ Mono<Response<BinaryData>> internalDecoratorInInternalWithResponse(String name,
|
110 | 114 | Mono<Response<BinaryData>> publicDecoratorInInternalWithResponse(String name, RequestOptions requestOptions) {
|
111 | 115 | return this.serviceClient.publicDecoratorInInternalWithResponseAsync(name, requestOptions);
|
112 | 116 | }
|
| 117 | + |
| 118 | + /** |
| 119 | + * The noDecoratorInInternal operation. |
| 120 | + * |
| 121 | + * @param name A sequence of textual characters. |
| 122 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 123 | + * @throws HttpResponseException thrown if the request is rejected by server. |
| 124 | + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. |
| 125 | + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. |
| 126 | + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. |
| 127 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 128 | + * @return used in an internal operation, should be generated but not exported on successful completion of {@link |
| 129 | + * Mono}. |
| 130 | + */ |
| 131 | + @Generated |
| 132 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 133 | + Mono<NoDecoratorModelInInternal> noDecoratorInInternal(String name) { |
| 134 | + // Generated convenience method for noDecoratorInInternalWithResponse |
| 135 | + RequestOptions requestOptions = new RequestOptions(); |
| 136 | + return noDecoratorInInternalWithResponse(name, requestOptions) |
| 137 | + .flatMap(FluxUtil::toMono) |
| 138 | + .map(protocolMethodData -> protocolMethodData.toObject(NoDecoratorModelInInternal.class)); |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * The internalDecoratorInInternal operation. |
| 143 | + * |
| 144 | + * @param name A sequence of textual characters. |
| 145 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 146 | + * @throws HttpResponseException thrown if the request is rejected by server. |
| 147 | + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. |
| 148 | + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. |
| 149 | + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. |
| 150 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 151 | + * @return used in an internal operation, should be generated but not exported on successful completion of {@link |
| 152 | + * Mono}. |
| 153 | + */ |
| 154 | + @Generated |
| 155 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 156 | + Mono<InternalDecoratorModelInInternal> internalDecoratorInInternal(String name) { |
| 157 | + // Generated convenience method for internalDecoratorInInternalWithResponse |
| 158 | + RequestOptions requestOptions = new RequestOptions(); |
| 159 | + return internalDecoratorInInternalWithResponse(name, requestOptions) |
| 160 | + .flatMap(FluxUtil::toMono) |
| 161 | + .map(protocolMethodData -> protocolMethodData.toObject(InternalDecoratorModelInInternal.class)); |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * The publicDecoratorInInternal operation. |
| 166 | + * |
| 167 | + * @param name A sequence of textual characters. |
| 168 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 169 | + * @throws HttpResponseException thrown if the request is rejected by server. |
| 170 | + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. |
| 171 | + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. |
| 172 | + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. |
| 173 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 174 | + * @return used in an internal operation but with public decorator, should be generated and exported on successful |
| 175 | + * completion of {@link Mono}. |
| 176 | + */ |
| 177 | + @Generated |
| 178 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 179 | + Mono<PublicDecoratorModelInInternal> publicDecoratorInInternal(String name) { |
| 180 | + // Generated convenience method for publicDecoratorInInternalWithResponse |
| 181 | + RequestOptions requestOptions = new RequestOptions(); |
| 182 | + return publicDecoratorInInternalWithResponse(name, requestOptions) |
| 183 | + .flatMap(FluxUtil::toMono) |
| 184 | + .map(protocolMethodData -> protocolMethodData.toObject(PublicDecoratorModelInInternal.class)); |
| 185 | + } |
113 | 186 | }
|
0 commit comments