| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Text.Json; |
| | 10 | | using System.Threading; |
| | 11 | | using System.Threading.Tasks; |
| | 12 | | using Azure; |
| | 13 | | using Azure.Analytics.Synapse.Artifacts.Models; |
| | 14 | | using Azure.Core; |
| | 15 | | using Azure.Core.Pipeline; |
| | 16 | |
|
| | 17 | | namespace Azure.Analytics.Synapse.Artifacts |
| | 18 | | { |
| | 19 | | internal partial class DataFlowDebugSessionRestClient |
| | 20 | | { |
| | 21 | | private string endpoint; |
| | 22 | | private string apiVersion; |
| | 23 | | private ClientDiagnostics _clientDiagnostics; |
| | 24 | | private HttpPipeline _pipeline; |
| | 25 | |
|
| | 26 | | /// <summary> Initializes a new instance of DataFlowDebugSessionRestClient. </summary> |
| | 27 | | /// <param name="clientDiagnostics"> The handler for diagnostic messaging in the client. </param> |
| | 28 | | /// <param name="pipeline"> The HTTP pipeline for sending and receiving REST requests and responses. </param> |
| | 29 | | /// <param name="endpoint"> The workspace development endpoint, for example https://myworkspace.dev.azuresynapse |
| | 30 | | /// <param name="apiVersion"> Api Version. </param> |
| | 31 | | /// <exception cref="ArgumentNullException"> <paramref name="endpoint"/> or <paramref name="apiVersion"/> is nul |
| 0 | 32 | | public DataFlowDebugSessionRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoin |
| | 33 | | { |
| 0 | 34 | | if (endpoint == null) |
| | 35 | | { |
| 0 | 36 | | throw new ArgumentNullException(nameof(endpoint)); |
| | 37 | | } |
| 0 | 38 | | if (apiVersion == null) |
| | 39 | | { |
| 0 | 40 | | throw new ArgumentNullException(nameof(apiVersion)); |
| | 41 | | } |
| | 42 | |
|
| 0 | 43 | | this.endpoint = endpoint; |
| 0 | 44 | | this.apiVersion = apiVersion; |
| 0 | 45 | | _clientDiagnostics = clientDiagnostics; |
| 0 | 46 | | _pipeline = pipeline; |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | internal HttpMessage CreateCreateDataFlowDebugSessionRequest(CreateDataFlowDebugSessionRequest request) |
| | 50 | | { |
| 0 | 51 | | var message = _pipeline.CreateMessage(); |
| 0 | 52 | | var request0 = message.Request; |
| 0 | 53 | | request0.Method = RequestMethod.Post; |
| 0 | 54 | | var uri = new RawRequestUriBuilder(); |
| 0 | 55 | | uri.AppendRaw(endpoint, false); |
| 0 | 56 | | uri.AppendPath("/createDataFlowDebugSession", false); |
| 0 | 57 | | uri.AppendQuery("api-version", apiVersion, true); |
| 0 | 58 | | request0.Uri = uri; |
| 0 | 59 | | request0.Headers.Add("Content-Type", "application/json"); |
| 0 | 60 | | var content = new Utf8JsonRequestContent(); |
| 0 | 61 | | content.JsonWriter.WriteObjectValue(request); |
| 0 | 62 | | request0.Content = content; |
| 0 | 63 | | return message; |
| | 64 | | } |
| | 65 | |
|
| | 66 | | /// <summary> Creates a data flow debug session. </summary> |
| | 67 | | /// <param name="request"> Data flow debug session definition. </param> |
| | 68 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 69 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 70 | | public async Task<ResponseWithHeaders<DataFlowDebugSessionCreateDataFlowDebugSessionHeaders>> CreateDataFlowDebu |
| | 71 | | { |
| 0 | 72 | | if (request == null) |
| | 73 | | { |
| 0 | 74 | | throw new ArgumentNullException(nameof(request)); |
| | 75 | | } |
| | 76 | |
|
| 0 | 77 | | using var message = CreateCreateDataFlowDebugSessionRequest(request); |
| 0 | 78 | | await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); |
| 0 | 79 | | var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response); |
| 0 | 80 | | switch (message.Response.Status) |
| | 81 | | { |
| | 82 | | case 200: |
| | 83 | | case 202: |
| 0 | 84 | | return ResponseWithHeaders.FromValue(headers, message.Response); |
| | 85 | | default: |
| 0 | 86 | | throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa |
| | 87 | | } |
| 0 | 88 | | } |
| | 89 | |
|
| | 90 | | /// <summary> Creates a data flow debug session. </summary> |
| | 91 | | /// <param name="request"> Data flow debug session definition. </param> |
| | 92 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 93 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 94 | | public ResponseWithHeaders<DataFlowDebugSessionCreateDataFlowDebugSessionHeaders> CreateDataFlowDebugSession(Cre |
| | 95 | | { |
| 0 | 96 | | if (request == null) |
| | 97 | | { |
| 0 | 98 | | throw new ArgumentNullException(nameof(request)); |
| | 99 | | } |
| | 100 | |
|
| 0 | 101 | | using var message = CreateCreateDataFlowDebugSessionRequest(request); |
| 0 | 102 | | _pipeline.Send(message, cancellationToken); |
| 0 | 103 | | var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response); |
| 0 | 104 | | switch (message.Response.Status) |
| | 105 | | { |
| | 106 | | case 200: |
| | 107 | | case 202: |
| 0 | 108 | | return ResponseWithHeaders.FromValue(headers, message.Response); |
| | 109 | | default: |
| 0 | 110 | | throw _clientDiagnostics.CreateRequestFailedException(message.Response); |
| | 111 | | } |
| 0 | 112 | | } |
| | 113 | |
|
| | 114 | | internal HttpMessage CreateQueryDataFlowDebugSessionsByWorkspaceRequest() |
| | 115 | | { |
| 0 | 116 | | var message = _pipeline.CreateMessage(); |
| 0 | 117 | | var request = message.Request; |
| 0 | 118 | | request.Method = RequestMethod.Post; |
| 0 | 119 | | var uri = new RawRequestUriBuilder(); |
| 0 | 120 | | uri.AppendRaw(endpoint, false); |
| 0 | 121 | | uri.AppendPath("/queryDataFlowDebugSessions", false); |
| 0 | 122 | | uri.AppendQuery("api-version", apiVersion, true); |
| 0 | 123 | | request.Uri = uri; |
| 0 | 124 | | return message; |
| | 125 | | } |
| | 126 | |
|
| | 127 | | /// <summary> Query all active data flow debug sessions. </summary> |
| | 128 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 129 | | public async Task<Response<QueryDataFlowDebugSessionsResponse>> QueryDataFlowDebugSessionsByWorkspaceAsync(Cance |
| | 130 | | { |
| 0 | 131 | | using var message = CreateQueryDataFlowDebugSessionsByWorkspaceRequest(); |
| 0 | 132 | | await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); |
| 0 | 133 | | switch (message.Response.Status) |
| | 134 | | { |
| | 135 | | case 200: |
| | 136 | | { |
| | 137 | | QueryDataFlowDebugSessionsResponse value = default; |
| 0 | 138 | | using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc |
| 0 | 139 | | value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(documen |
| 0 | 140 | | return Response.FromValue(value, message.Response); |
| | 141 | | } |
| | 142 | | default: |
| 0 | 143 | | throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa |
| | 144 | | } |
| 0 | 145 | | } |
| | 146 | |
|
| | 147 | | /// <summary> Query all active data flow debug sessions. </summary> |
| | 148 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 149 | | public Response<QueryDataFlowDebugSessionsResponse> QueryDataFlowDebugSessionsByWorkspace(CancellationToken canc |
| | 150 | | { |
| 0 | 151 | | using var message = CreateQueryDataFlowDebugSessionsByWorkspaceRequest(); |
| 0 | 152 | | _pipeline.Send(message, cancellationToken); |
| 0 | 153 | | switch (message.Response.Status) |
| | 154 | | { |
| | 155 | | case 200: |
| | 156 | | { |
| | 157 | | QueryDataFlowDebugSessionsResponse value = default; |
| 0 | 158 | | using var document = JsonDocument.Parse(message.Response.ContentStream); |
| 0 | 159 | | value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(documen |
| 0 | 160 | | return Response.FromValue(value, message.Response); |
| | 161 | | } |
| | 162 | | default: |
| 0 | 163 | | throw _clientDiagnostics.CreateRequestFailedException(message.Response); |
| | 164 | | } |
| 0 | 165 | | } |
| | 166 | |
|
| | 167 | | internal HttpMessage CreateAddDataFlowRequest(DataFlowDebugPackage request) |
| | 168 | | { |
| 0 | 169 | | var message = _pipeline.CreateMessage(); |
| 0 | 170 | | var request0 = message.Request; |
| 0 | 171 | | request0.Method = RequestMethod.Post; |
| 0 | 172 | | var uri = new RawRequestUriBuilder(); |
| 0 | 173 | | uri.AppendRaw(endpoint, false); |
| 0 | 174 | | uri.AppendPath("/addDataFlowToDebugSession", false); |
| 0 | 175 | | uri.AppendQuery("api-version", apiVersion, true); |
| 0 | 176 | | request0.Uri = uri; |
| 0 | 177 | | request0.Headers.Add("Content-Type", "application/json"); |
| 0 | 178 | | var content = new Utf8JsonRequestContent(); |
| 0 | 179 | | content.JsonWriter.WriteObjectValue(request); |
| 0 | 180 | | request0.Content = content; |
| 0 | 181 | | return message; |
| | 182 | | } |
| | 183 | |
|
| | 184 | | /// <summary> Add a data flow into debug session. </summary> |
| | 185 | | /// <param name="request"> Data flow debug session definition with debug content. </param> |
| | 186 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 187 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 188 | | public async Task<Response<AddDataFlowToDebugSessionResponse>> AddDataFlowAsync(DataFlowDebugPackage request, Ca |
| | 189 | | { |
| 0 | 190 | | if (request == null) |
| | 191 | | { |
| 0 | 192 | | throw new ArgumentNullException(nameof(request)); |
| | 193 | | } |
| | 194 | |
|
| 0 | 195 | | using var message = CreateAddDataFlowRequest(request); |
| 0 | 196 | | await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); |
| 0 | 197 | | switch (message.Response.Status) |
| | 198 | | { |
| | 199 | | case 200: |
| | 200 | | { |
| | 201 | | AddDataFlowToDebugSessionResponse value = default; |
| 0 | 202 | | using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc |
| 0 | 203 | | value = AddDataFlowToDebugSessionResponse.DeserializeAddDataFlowToDebugSessionResponse(document. |
| 0 | 204 | | return Response.FromValue(value, message.Response); |
| | 205 | | } |
| | 206 | | default: |
| 0 | 207 | | throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa |
| | 208 | | } |
| 0 | 209 | | } |
| | 210 | |
|
| | 211 | | /// <summary> Add a data flow into debug session. </summary> |
| | 212 | | /// <param name="request"> Data flow debug session definition with debug content. </param> |
| | 213 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 214 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 215 | | public Response<AddDataFlowToDebugSessionResponse> AddDataFlow(DataFlowDebugPackage request, CancellationToken c |
| | 216 | | { |
| 0 | 217 | | if (request == null) |
| | 218 | | { |
| 0 | 219 | | throw new ArgumentNullException(nameof(request)); |
| | 220 | | } |
| | 221 | |
|
| 0 | 222 | | using var message = CreateAddDataFlowRequest(request); |
| 0 | 223 | | _pipeline.Send(message, cancellationToken); |
| 0 | 224 | | switch (message.Response.Status) |
| | 225 | | { |
| | 226 | | case 200: |
| | 227 | | { |
| | 228 | | AddDataFlowToDebugSessionResponse value = default; |
| 0 | 229 | | using var document = JsonDocument.Parse(message.Response.ContentStream); |
| 0 | 230 | | value = AddDataFlowToDebugSessionResponse.DeserializeAddDataFlowToDebugSessionResponse(document. |
| 0 | 231 | | return Response.FromValue(value, message.Response); |
| | 232 | | } |
| | 233 | | default: |
| 0 | 234 | | throw _clientDiagnostics.CreateRequestFailedException(message.Response); |
| | 235 | | } |
| 0 | 236 | | } |
| | 237 | |
|
| | 238 | | internal HttpMessage CreateDeleteDataFlowDebugSessionRequest(DeleteDataFlowDebugSessionRequest request) |
| | 239 | | { |
| 0 | 240 | | var message = _pipeline.CreateMessage(); |
| 0 | 241 | | var request0 = message.Request; |
| 0 | 242 | | request0.Method = RequestMethod.Post; |
| 0 | 243 | | var uri = new RawRequestUriBuilder(); |
| 0 | 244 | | uri.AppendRaw(endpoint, false); |
| 0 | 245 | | uri.AppendPath("/deleteDataFlowDebugSession", false); |
| 0 | 246 | | uri.AppendQuery("api-version", apiVersion, true); |
| 0 | 247 | | request0.Uri = uri; |
| 0 | 248 | | request0.Headers.Add("Content-Type", "application/json"); |
| 0 | 249 | | var content = new Utf8JsonRequestContent(); |
| 0 | 250 | | content.JsonWriter.WriteObjectValue(request); |
| 0 | 251 | | request0.Content = content; |
| 0 | 252 | | return message; |
| | 253 | | } |
| | 254 | |
|
| | 255 | | /// <summary> Deletes a data flow debug session. </summary> |
| | 256 | | /// <param name="request"> Data flow debug session definition for deletion. </param> |
| | 257 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 258 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 259 | | public async Task<Response> DeleteDataFlowDebugSessionAsync(DeleteDataFlowDebugSessionRequest request, Cancellat |
| | 260 | | { |
| 0 | 261 | | if (request == null) |
| | 262 | | { |
| 0 | 263 | | throw new ArgumentNullException(nameof(request)); |
| | 264 | | } |
| | 265 | |
|
| 0 | 266 | | using var message = CreateDeleteDataFlowDebugSessionRequest(request); |
| 0 | 267 | | await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); |
| 0 | 268 | | switch (message.Response.Status) |
| | 269 | | { |
| | 270 | | case 200: |
| 0 | 271 | | return message.Response; |
| | 272 | | default: |
| 0 | 273 | | throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa |
| | 274 | | } |
| 0 | 275 | | } |
| | 276 | |
|
| | 277 | | /// <summary> Deletes a data flow debug session. </summary> |
| | 278 | | /// <param name="request"> Data flow debug session definition for deletion. </param> |
| | 279 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 280 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 281 | | public Response DeleteDataFlowDebugSession(DeleteDataFlowDebugSessionRequest request, CancellationToken cancella |
| | 282 | | { |
| 0 | 283 | | if (request == null) |
| | 284 | | { |
| 0 | 285 | | throw new ArgumentNullException(nameof(request)); |
| | 286 | | } |
| | 287 | |
|
| 0 | 288 | | using var message = CreateDeleteDataFlowDebugSessionRequest(request); |
| 0 | 289 | | _pipeline.Send(message, cancellationToken); |
| 0 | 290 | | switch (message.Response.Status) |
| | 291 | | { |
| | 292 | | case 200: |
| 0 | 293 | | return message.Response; |
| | 294 | | default: |
| 0 | 295 | | throw _clientDiagnostics.CreateRequestFailedException(message.Response); |
| | 296 | | } |
| 0 | 297 | | } |
| | 298 | |
|
| | 299 | | internal HttpMessage CreateExecuteCommandRequest(DataFlowDebugCommandRequest request) |
| | 300 | | { |
| 0 | 301 | | var message = _pipeline.CreateMessage(); |
| 0 | 302 | | var request0 = message.Request; |
| 0 | 303 | | request0.Method = RequestMethod.Post; |
| 0 | 304 | | var uri = new RawRequestUriBuilder(); |
| 0 | 305 | | uri.AppendRaw(endpoint, false); |
| 0 | 306 | | uri.AppendPath("/executeDataFlowDebugCommand", false); |
| 0 | 307 | | uri.AppendQuery("api-version", apiVersion, true); |
| 0 | 308 | | request0.Uri = uri; |
| 0 | 309 | | request0.Headers.Add("Content-Type", "application/json"); |
| 0 | 310 | | var content = new Utf8JsonRequestContent(); |
| 0 | 311 | | content.JsonWriter.WriteObjectValue(request); |
| 0 | 312 | | request0.Content = content; |
| 0 | 313 | | return message; |
| | 314 | | } |
| | 315 | |
|
| | 316 | | /// <summary> Execute a data flow debug command. </summary> |
| | 317 | | /// <param name="request"> Data flow debug command definition. </param> |
| | 318 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 319 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 320 | | public async Task<ResponseWithHeaders<DataFlowDebugSessionExecuteCommandHeaders>> ExecuteCommandAsync(DataFlowDe |
| | 321 | | { |
| 0 | 322 | | if (request == null) |
| | 323 | | { |
| 0 | 324 | | throw new ArgumentNullException(nameof(request)); |
| | 325 | | } |
| | 326 | |
|
| 0 | 327 | | using var message = CreateExecuteCommandRequest(request); |
| 0 | 328 | | await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); |
| 0 | 329 | | var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response); |
| 0 | 330 | | switch (message.Response.Status) |
| | 331 | | { |
| | 332 | | case 200: |
| | 333 | | case 202: |
| 0 | 334 | | return ResponseWithHeaders.FromValue(headers, message.Response); |
| | 335 | | default: |
| 0 | 336 | | throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa |
| | 337 | | } |
| 0 | 338 | | } |
| | 339 | |
|
| | 340 | | /// <summary> Execute a data flow debug command. </summary> |
| | 341 | | /// <param name="request"> Data flow debug command definition. </param> |
| | 342 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 343 | | /// <exception cref="ArgumentNullException"> <paramref name="request"/> is null. </exception> |
| | 344 | | public ResponseWithHeaders<DataFlowDebugSessionExecuteCommandHeaders> ExecuteCommand(DataFlowDebugCommandRequest |
| | 345 | | { |
| 0 | 346 | | if (request == null) |
| | 347 | | { |
| 0 | 348 | | throw new ArgumentNullException(nameof(request)); |
| | 349 | | } |
| | 350 | |
|
| 0 | 351 | | using var message = CreateExecuteCommandRequest(request); |
| 0 | 352 | | _pipeline.Send(message, cancellationToken); |
| 0 | 353 | | var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response); |
| 0 | 354 | | switch (message.Response.Status) |
| | 355 | | { |
| | 356 | | case 200: |
| | 357 | | case 202: |
| 0 | 358 | | return ResponseWithHeaders.FromValue(headers, message.Response); |
| | 359 | | default: |
| 0 | 360 | | throw _clientDiagnostics.CreateRequestFailedException(message.Response); |
| | 361 | | } |
| 0 | 362 | | } |
| | 363 | |
|
| | 364 | | internal HttpMessage CreateQueryDataFlowDebugSessionsByWorkspaceNextPageRequest(string nextLink) |
| | 365 | | { |
| 0 | 366 | | var message = _pipeline.CreateMessage(); |
| 0 | 367 | | var request = message.Request; |
| 0 | 368 | | request.Method = RequestMethod.Get; |
| 0 | 369 | | var uri = new RawRequestUriBuilder(); |
| 0 | 370 | | uri.AppendRaw(endpoint, false); |
| 0 | 371 | | uri.AppendRawNextLink(nextLink, false); |
| 0 | 372 | | request.Uri = uri; |
| 0 | 373 | | return message; |
| | 374 | | } |
| | 375 | |
|
| | 376 | | /// <summary> Query all active data flow debug sessions. </summary> |
| | 377 | | /// <param name="nextLink"> The URL to the next page of results. </param> |
| | 378 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 379 | | /// <exception cref="ArgumentNullException"> <paramref name="nextLink"/> is null. </exception> |
| | 380 | | public async Task<Response<QueryDataFlowDebugSessionsResponse>> QueryDataFlowDebugSessionsByWorkspaceNextPageAsy |
| | 381 | | { |
| 0 | 382 | | if (nextLink == null) |
| | 383 | | { |
| 0 | 384 | | throw new ArgumentNullException(nameof(nextLink)); |
| | 385 | | } |
| | 386 | |
|
| 0 | 387 | | using var message = CreateQueryDataFlowDebugSessionsByWorkspaceNextPageRequest(nextLink); |
| 0 | 388 | | await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); |
| 0 | 389 | | switch (message.Response.Status) |
| | 390 | | { |
| | 391 | | case 200: |
| | 392 | | { |
| | 393 | | QueryDataFlowDebugSessionsResponse value = default; |
| 0 | 394 | | using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc |
| 0 | 395 | | value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(documen |
| 0 | 396 | | return Response.FromValue(value, message.Response); |
| | 397 | | } |
| | 398 | | default: |
| 0 | 399 | | throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa |
| | 400 | | } |
| 0 | 401 | | } |
| | 402 | |
|
| | 403 | | /// <summary> Query all active data flow debug sessions. </summary> |
| | 404 | | /// <param name="nextLink"> The URL to the next page of results. </param> |
| | 405 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 406 | | /// <exception cref="ArgumentNullException"> <paramref name="nextLink"/> is null. </exception> |
| | 407 | | public Response<QueryDataFlowDebugSessionsResponse> QueryDataFlowDebugSessionsByWorkspaceNextPage(string nextLin |
| | 408 | | { |
| 0 | 409 | | if (nextLink == null) |
| | 410 | | { |
| 0 | 411 | | throw new ArgumentNullException(nameof(nextLink)); |
| | 412 | | } |
| | 413 | |
|
| 0 | 414 | | using var message = CreateQueryDataFlowDebugSessionsByWorkspaceNextPageRequest(nextLink); |
| 0 | 415 | | _pipeline.Send(message, cancellationToken); |
| 0 | 416 | | switch (message.Response.Status) |
| | 417 | | { |
| | 418 | | case 200: |
| | 419 | | { |
| | 420 | | QueryDataFlowDebugSessionsResponse value = default; |
| 0 | 421 | | using var document = JsonDocument.Parse(message.Response.ContentStream); |
| 0 | 422 | | value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(documen |
| 0 | 423 | | return Response.FromValue(value, message.Response); |
| | 424 | | } |
| | 425 | | default: |
| 0 | 426 | | throw _clientDiagnostics.CreateRequestFailedException(message.Response); |
| | 427 | | } |
| 0 | 428 | | } |
| | 429 | | } |
| | 430 | | } |