| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Batch.Protocol |
| | 12 | | { |
| | 13 | | using Microsoft.Rest; |
| | 14 | | using Microsoft.Rest.Azure; |
| | 15 | | using Models; |
| | 16 | | using System.Threading; |
| | 17 | | using System.Threading.Tasks; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Extension methods for JobScheduleOperations. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class JobScheduleOperationsExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Checks the specified Job Schedule exists. |
| | 26 | | /// </summary> |
| | 27 | | /// <param name='operations'> |
| | 28 | | /// The operations group for this extension method. |
| | 29 | | /// </param> |
| | 30 | | /// <param name='jobScheduleId'> |
| | 31 | | /// The ID of the Job Schedule which you want to check. |
| | 32 | | /// </param> |
| | 33 | | /// <param name='jobScheduleExistsOptions'> |
| | 34 | | /// Additional parameters for the operation |
| | 35 | | /// </param> |
| | 36 | | public static bool Exists(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleExistsOpt |
| | 37 | | { |
| 0 | 38 | | return operations.ExistsAsync(jobScheduleId, jobScheduleExistsOptions).GetAwaiter().GetResult(); |
| | 39 | | } |
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// Checks the specified Job Schedule exists. |
| | 43 | | /// </summary> |
| | 44 | | /// <param name='operations'> |
| | 45 | | /// The operations group for this extension method. |
| | 46 | | /// </param> |
| | 47 | | /// <param name='jobScheduleId'> |
| | 48 | | /// The ID of the Job Schedule which you want to check. |
| | 49 | | /// </param> |
| | 50 | | /// <param name='jobScheduleExistsOptions'> |
| | 51 | | /// Additional parameters for the operation |
| | 52 | | /// </param> |
| | 53 | | /// <param name='cancellationToken'> |
| | 54 | | /// The cancellation token. |
| | 55 | | /// </param> |
| | 56 | | public static async Task<bool> ExistsAsync(this IJobScheduleOperations operations, string jobScheduleId, Job |
| | 57 | | { |
| 0 | 58 | | using (var _result = await operations.ExistsWithHttpMessagesAsync(jobScheduleId, jobScheduleExistsOption |
| | 59 | | { |
| 0 | 60 | | return _result.Body; |
| | 61 | | } |
| 0 | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Deletes a Job Schedule from the specified Account. |
| | 66 | | /// </summary> |
| | 67 | | /// <remarks> |
| | 68 | | /// When you delete a Job Schedule, this also deletes all Jobs and Tasks under |
| | 69 | | /// that schedule. When Tasks are deleted, all the files in their working |
| | 70 | | /// directories on the Compute Nodes are also deleted (the retention period is |
| | 71 | | /// ignored). The Job Schedule statistics are no longer accessible once the Job |
| | 72 | | /// Schedule is deleted, though they are still counted towards Account lifetime |
| | 73 | | /// statistics. |
| | 74 | | /// </remarks> |
| | 75 | | /// <param name='operations'> |
| | 76 | | /// The operations group for this extension method. |
| | 77 | | /// </param> |
| | 78 | | /// <param name='jobScheduleId'> |
| | 79 | | /// The ID of the Job Schedule to delete. |
| | 80 | | /// </param> |
| | 81 | | /// <param name='jobScheduleDeleteOptions'> |
| | 82 | | /// Additional parameters for the operation |
| | 83 | | /// </param> |
| | 84 | | public static JobScheduleDeleteHeaders Delete(this IJobScheduleOperations operations, string jobScheduleId, |
| | 85 | | { |
| 0 | 86 | | return operations.DeleteAsync(jobScheduleId, jobScheduleDeleteOptions).GetAwaiter().GetResult(); |
| | 87 | | } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Deletes a Job Schedule from the specified Account. |
| | 91 | | /// </summary> |
| | 92 | | /// <remarks> |
| | 93 | | /// When you delete a Job Schedule, this also deletes all Jobs and Tasks under |
| | 94 | | /// that schedule. When Tasks are deleted, all the files in their working |
| | 95 | | /// directories on the Compute Nodes are also deleted (the retention period is |
| | 96 | | /// ignored). The Job Schedule statistics are no longer accessible once the Job |
| | 97 | | /// Schedule is deleted, though they are still counted towards Account lifetime |
| | 98 | | /// statistics. |
| | 99 | | /// </remarks> |
| | 100 | | /// <param name='operations'> |
| | 101 | | /// The operations group for this extension method. |
| | 102 | | /// </param> |
| | 103 | | /// <param name='jobScheduleId'> |
| | 104 | | /// The ID of the Job Schedule to delete. |
| | 105 | | /// </param> |
| | 106 | | /// <param name='jobScheduleDeleteOptions'> |
| | 107 | | /// Additional parameters for the operation |
| | 108 | | /// </param> |
| | 109 | | /// <param name='cancellationToken'> |
| | 110 | | /// The cancellation token. |
| | 111 | | /// </param> |
| | 112 | | public static async Task<JobScheduleDeleteHeaders> DeleteAsync(this IJobScheduleOperations operations, strin |
| | 113 | | { |
| 0 | 114 | | using (var _result = await operations.DeleteWithHttpMessagesAsync(jobScheduleId, jobScheduleDeleteOption |
| | 115 | | { |
| 0 | 116 | | return _result.Headers; |
| | 117 | | } |
| 0 | 118 | | } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets information about the specified Job Schedule. |
| | 122 | | /// </summary> |
| | 123 | | /// <param name='operations'> |
| | 124 | | /// The operations group for this extension method. |
| | 125 | | /// </param> |
| | 126 | | /// <param name='jobScheduleId'> |
| | 127 | | /// The ID of the Job Schedule to get. |
| | 128 | | /// </param> |
| | 129 | | /// <param name='jobScheduleGetOptions'> |
| | 130 | | /// Additional parameters for the operation |
| | 131 | | /// </param> |
| | 132 | | public static CloudJobSchedule Get(this IJobScheduleOperations operations, string jobScheduleId, JobSchedule |
| | 133 | | { |
| 0 | 134 | | return operations.GetAsync(jobScheduleId, jobScheduleGetOptions).GetAwaiter().GetResult(); |
| | 135 | | } |
| | 136 | |
|
| | 137 | | /// <summary> |
| | 138 | | /// Gets information about the specified Job Schedule. |
| | 139 | | /// </summary> |
| | 140 | | /// <param name='operations'> |
| | 141 | | /// The operations group for this extension method. |
| | 142 | | /// </param> |
| | 143 | | /// <param name='jobScheduleId'> |
| | 144 | | /// The ID of the Job Schedule to get. |
| | 145 | | /// </param> |
| | 146 | | /// <param name='jobScheduleGetOptions'> |
| | 147 | | /// Additional parameters for the operation |
| | 148 | | /// </param> |
| | 149 | | /// <param name='cancellationToken'> |
| | 150 | | /// The cancellation token. |
| | 151 | | /// </param> |
| | 152 | | public static async Task<CloudJobSchedule> GetAsync(this IJobScheduleOperations operations, string jobSchedu |
| | 153 | | { |
| 0 | 154 | | using (var _result = await operations.GetWithHttpMessagesAsync(jobScheduleId, jobScheduleGetOptions, nul |
| | 155 | | { |
| 0 | 156 | | return _result.Body; |
| | 157 | | } |
| 0 | 158 | | } |
| | 159 | |
|
| | 160 | | /// <summary> |
| | 161 | | /// Updates the properties of the specified Job Schedule. |
| | 162 | | /// </summary> |
| | 163 | | /// <remarks> |
| | 164 | | /// This replaces only the Job Schedule properties specified in the request. |
| | 165 | | /// For example, if the schedule property is not specified with this request, |
| | 166 | | /// then the Batch service will keep the existing schedule. Changes to a Job |
| | 167 | | /// Schedule only impact Jobs created by the schedule after the update has |
| | 168 | | /// taken place; currently running Jobs are unaffected. |
| | 169 | | /// </remarks> |
| | 170 | | /// <param name='operations'> |
| | 171 | | /// The operations group for this extension method. |
| | 172 | | /// </param> |
| | 173 | | /// <param name='jobScheduleId'> |
| | 174 | | /// The ID of the Job Schedule to update. |
| | 175 | | /// </param> |
| | 176 | | /// <param name='jobSchedulePatchParameter'> |
| | 177 | | /// The parameters for the request. |
| | 178 | | /// </param> |
| | 179 | | /// <param name='jobSchedulePatchOptions'> |
| | 180 | | /// Additional parameters for the operation |
| | 181 | | /// </param> |
| | 182 | | public static JobSchedulePatchHeaders Patch(this IJobScheduleOperations operations, string jobScheduleId, Jo |
| | 183 | | { |
| 0 | 184 | | return operations.PatchAsync(jobScheduleId, jobSchedulePatchParameter, jobSchedulePatchOptions).GetAwait |
| | 185 | | } |
| | 186 | |
|
| | 187 | | /// <summary> |
| | 188 | | /// Updates the properties of the specified Job Schedule. |
| | 189 | | /// </summary> |
| | 190 | | /// <remarks> |
| | 191 | | /// This replaces only the Job Schedule properties specified in the request. |
| | 192 | | /// For example, if the schedule property is not specified with this request, |
| | 193 | | /// then the Batch service will keep the existing schedule. Changes to a Job |
| | 194 | | /// Schedule only impact Jobs created by the schedule after the update has |
| | 195 | | /// taken place; currently running Jobs are unaffected. |
| | 196 | | /// </remarks> |
| | 197 | | /// <param name='operations'> |
| | 198 | | /// The operations group for this extension method. |
| | 199 | | /// </param> |
| | 200 | | /// <param name='jobScheduleId'> |
| | 201 | | /// The ID of the Job Schedule to update. |
| | 202 | | /// </param> |
| | 203 | | /// <param name='jobSchedulePatchParameter'> |
| | 204 | | /// The parameters for the request. |
| | 205 | | /// </param> |
| | 206 | | /// <param name='jobSchedulePatchOptions'> |
| | 207 | | /// Additional parameters for the operation |
| | 208 | | /// </param> |
| | 209 | | /// <param name='cancellationToken'> |
| | 210 | | /// The cancellation token. |
| | 211 | | /// </param> |
| | 212 | | public static async Task<JobSchedulePatchHeaders> PatchAsync(this IJobScheduleOperations operations, string |
| | 213 | | { |
| 0 | 214 | | using (var _result = await operations.PatchWithHttpMessagesAsync(jobScheduleId, jobSchedulePatchParamete |
| | 215 | | { |
| 0 | 216 | | return _result.Headers; |
| | 217 | | } |
| 0 | 218 | | } |
| | 219 | |
|
| | 220 | | /// <summary> |
| | 221 | | /// Updates the properties of the specified Job Schedule. |
| | 222 | | /// </summary> |
| | 223 | | /// <remarks> |
| | 224 | | /// This fully replaces all the updatable properties of the Job Schedule. For |
| | 225 | | /// example, if the schedule property is not specified with this request, then |
| | 226 | | /// the Batch service will remove the existing schedule. Changes to a Job |
| | 227 | | /// Schedule only impact Jobs created by the schedule after the update has |
| | 228 | | /// taken place; currently running Jobs are unaffected. |
| | 229 | | /// </remarks> |
| | 230 | | /// <param name='operations'> |
| | 231 | | /// The operations group for this extension method. |
| | 232 | | /// </param> |
| | 233 | | /// <param name='jobScheduleId'> |
| | 234 | | /// The ID of the Job Schedule to update. |
| | 235 | | /// </param> |
| | 236 | | /// <param name='jobScheduleUpdateParameter'> |
| | 237 | | /// The parameters for the request. |
| | 238 | | /// </param> |
| | 239 | | /// <param name='jobScheduleUpdateOptions'> |
| | 240 | | /// Additional parameters for the operation |
| | 241 | | /// </param> |
| | 242 | | public static JobScheduleUpdateHeaders Update(this IJobScheduleOperations operations, string jobScheduleId, |
| | 243 | | { |
| 0 | 244 | | return operations.UpdateAsync(jobScheduleId, jobScheduleUpdateParameter, jobScheduleUpdateOptions).GetAw |
| | 245 | | } |
| | 246 | |
|
| | 247 | | /// <summary> |
| | 248 | | /// Updates the properties of the specified Job Schedule. |
| | 249 | | /// </summary> |
| | 250 | | /// <remarks> |
| | 251 | | /// This fully replaces all the updatable properties of the Job Schedule. For |
| | 252 | | /// example, if the schedule property is not specified with this request, then |
| | 253 | | /// the Batch service will remove the existing schedule. Changes to a Job |
| | 254 | | /// Schedule only impact Jobs created by the schedule after the update has |
| | 255 | | /// taken place; currently running Jobs are unaffected. |
| | 256 | | /// </remarks> |
| | 257 | | /// <param name='operations'> |
| | 258 | | /// The operations group for this extension method. |
| | 259 | | /// </param> |
| | 260 | | /// <param name='jobScheduleId'> |
| | 261 | | /// The ID of the Job Schedule to update. |
| | 262 | | /// </param> |
| | 263 | | /// <param name='jobScheduleUpdateParameter'> |
| | 264 | | /// The parameters for the request. |
| | 265 | | /// </param> |
| | 266 | | /// <param name='jobScheduleUpdateOptions'> |
| | 267 | | /// Additional parameters for the operation |
| | 268 | | /// </param> |
| | 269 | | /// <param name='cancellationToken'> |
| | 270 | | /// The cancellation token. |
| | 271 | | /// </param> |
| | 272 | | public static async Task<JobScheduleUpdateHeaders> UpdateAsync(this IJobScheduleOperations operations, strin |
| | 273 | | { |
| 0 | 274 | | using (var _result = await operations.UpdateWithHttpMessagesAsync(jobScheduleId, jobScheduleUpdateParame |
| | 275 | | { |
| 0 | 276 | | return _result.Headers; |
| | 277 | | } |
| 0 | 278 | | } |
| | 279 | |
|
| | 280 | | /// <summary> |
| | 281 | | /// Disables a Job Schedule. |
| | 282 | | /// </summary> |
| | 283 | | /// <remarks> |
| | 284 | | /// No new Jobs will be created until the Job Schedule is enabled again. |
| | 285 | | /// </remarks> |
| | 286 | | /// <param name='operations'> |
| | 287 | | /// The operations group for this extension method. |
| | 288 | | /// </param> |
| | 289 | | /// <param name='jobScheduleId'> |
| | 290 | | /// The ID of the Job Schedule to disable. |
| | 291 | | /// </param> |
| | 292 | | /// <param name='jobScheduleDisableOptions'> |
| | 293 | | /// Additional parameters for the operation |
| | 294 | | /// </param> |
| | 295 | | public static JobScheduleDisableHeaders Disable(this IJobScheduleOperations operations, string jobScheduleId |
| | 296 | | { |
| 0 | 297 | | return operations.DisableAsync(jobScheduleId, jobScheduleDisableOptions).GetAwaiter().GetResult(); |
| | 298 | | } |
| | 299 | |
|
| | 300 | | /// <summary> |
| | 301 | | /// Disables a Job Schedule. |
| | 302 | | /// </summary> |
| | 303 | | /// <remarks> |
| | 304 | | /// No new Jobs will be created until the Job Schedule is enabled again. |
| | 305 | | /// </remarks> |
| | 306 | | /// <param name='operations'> |
| | 307 | | /// The operations group for this extension method. |
| | 308 | | /// </param> |
| | 309 | | /// <param name='jobScheduleId'> |
| | 310 | | /// The ID of the Job Schedule to disable. |
| | 311 | | /// </param> |
| | 312 | | /// <param name='jobScheduleDisableOptions'> |
| | 313 | | /// Additional parameters for the operation |
| | 314 | | /// </param> |
| | 315 | | /// <param name='cancellationToken'> |
| | 316 | | /// The cancellation token. |
| | 317 | | /// </param> |
| | 318 | | public static async Task<JobScheduleDisableHeaders> DisableAsync(this IJobScheduleOperations operations, str |
| | 319 | | { |
| 0 | 320 | | using (var _result = await operations.DisableWithHttpMessagesAsync(jobScheduleId, jobScheduleDisableOpti |
| | 321 | | { |
| 0 | 322 | | return _result.Headers; |
| | 323 | | } |
| 0 | 324 | | } |
| | 325 | |
|
| | 326 | | /// <summary> |
| | 327 | | /// Enables a Job Schedule. |
| | 328 | | /// </summary> |
| | 329 | | /// <param name='operations'> |
| | 330 | | /// The operations group for this extension method. |
| | 331 | | /// </param> |
| | 332 | | /// <param name='jobScheduleId'> |
| | 333 | | /// The ID of the Job Schedule to enable. |
| | 334 | | /// </param> |
| | 335 | | /// <param name='jobScheduleEnableOptions'> |
| | 336 | | /// Additional parameters for the operation |
| | 337 | | /// </param> |
| | 338 | | public static JobScheduleEnableHeaders Enable(this IJobScheduleOperations operations, string jobScheduleId, |
| | 339 | | { |
| 0 | 340 | | return operations.EnableAsync(jobScheduleId, jobScheduleEnableOptions).GetAwaiter().GetResult(); |
| | 341 | | } |
| | 342 | |
|
| | 343 | | /// <summary> |
| | 344 | | /// Enables a Job Schedule. |
| | 345 | | /// </summary> |
| | 346 | | /// <param name='operations'> |
| | 347 | | /// The operations group for this extension method. |
| | 348 | | /// </param> |
| | 349 | | /// <param name='jobScheduleId'> |
| | 350 | | /// The ID of the Job Schedule to enable. |
| | 351 | | /// </param> |
| | 352 | | /// <param name='jobScheduleEnableOptions'> |
| | 353 | | /// Additional parameters for the operation |
| | 354 | | /// </param> |
| | 355 | | /// <param name='cancellationToken'> |
| | 356 | | /// The cancellation token. |
| | 357 | | /// </param> |
| | 358 | | public static async Task<JobScheduleEnableHeaders> EnableAsync(this IJobScheduleOperations operations, strin |
| | 359 | | { |
| 0 | 360 | | using (var _result = await operations.EnableWithHttpMessagesAsync(jobScheduleId, jobScheduleEnableOption |
| | 361 | | { |
| 0 | 362 | | return _result.Headers; |
| | 363 | | } |
| 0 | 364 | | } |
| | 365 | |
|
| | 366 | | /// <summary> |
| | 367 | | /// Terminates a Job Schedule. |
| | 368 | | /// </summary> |
| | 369 | | /// <param name='operations'> |
| | 370 | | /// The operations group for this extension method. |
| | 371 | | /// </param> |
| | 372 | | /// <param name='jobScheduleId'> |
| | 373 | | /// The ID of the Job Schedule to terminates. |
| | 374 | | /// </param> |
| | 375 | | /// <param name='jobScheduleTerminateOptions'> |
| | 376 | | /// Additional parameters for the operation |
| | 377 | | /// </param> |
| | 378 | | public static JobScheduleTerminateHeaders Terminate(this IJobScheduleOperations operations, string jobSchedu |
| | 379 | | { |
| 0 | 380 | | return operations.TerminateAsync(jobScheduleId, jobScheduleTerminateOptions).GetAwaiter().GetResult(); |
| | 381 | | } |
| | 382 | |
|
| | 383 | | /// <summary> |
| | 384 | | /// Terminates a Job Schedule. |
| | 385 | | /// </summary> |
| | 386 | | /// <param name='operations'> |
| | 387 | | /// The operations group for this extension method. |
| | 388 | | /// </param> |
| | 389 | | /// <param name='jobScheduleId'> |
| | 390 | | /// The ID of the Job Schedule to terminates. |
| | 391 | | /// </param> |
| | 392 | | /// <param name='jobScheduleTerminateOptions'> |
| | 393 | | /// Additional parameters for the operation |
| | 394 | | /// </param> |
| | 395 | | /// <param name='cancellationToken'> |
| | 396 | | /// The cancellation token. |
| | 397 | | /// </param> |
| | 398 | | public static async Task<JobScheduleTerminateHeaders> TerminateAsync(this IJobScheduleOperations operations, |
| | 399 | | { |
| 0 | 400 | | using (var _result = await operations.TerminateWithHttpMessagesAsync(jobScheduleId, jobScheduleTerminate |
| | 401 | | { |
| 0 | 402 | | return _result.Headers; |
| | 403 | | } |
| 0 | 404 | | } |
| | 405 | |
|
| | 406 | | /// <summary> |
| | 407 | | /// Adds a Job Schedule to the specified Account. |
| | 408 | | /// </summary> |
| | 409 | | /// <param name='operations'> |
| | 410 | | /// The operations group for this extension method. |
| | 411 | | /// </param> |
| | 412 | | /// <param name='cloudJobSchedule'> |
| | 413 | | /// The Job Schedule to be added. |
| | 414 | | /// </param> |
| | 415 | | /// <param name='jobScheduleAddOptions'> |
| | 416 | | /// Additional parameters for the operation |
| | 417 | | /// </param> |
| | 418 | | public static JobScheduleAddHeaders Add(this IJobScheduleOperations operations, JobScheduleAddParameter clou |
| | 419 | | { |
| 0 | 420 | | return operations.AddAsync(cloudJobSchedule, jobScheduleAddOptions).GetAwaiter().GetResult(); |
| | 421 | | } |
| | 422 | |
|
| | 423 | | /// <summary> |
| | 424 | | /// Adds a Job Schedule to the specified Account. |
| | 425 | | /// </summary> |
| | 426 | | /// <param name='operations'> |
| | 427 | | /// The operations group for this extension method. |
| | 428 | | /// </param> |
| | 429 | | /// <param name='cloudJobSchedule'> |
| | 430 | | /// The Job Schedule to be added. |
| | 431 | | /// </param> |
| | 432 | | /// <param name='jobScheduleAddOptions'> |
| | 433 | | /// Additional parameters for the operation |
| | 434 | | /// </param> |
| | 435 | | /// <param name='cancellationToken'> |
| | 436 | | /// The cancellation token. |
| | 437 | | /// </param> |
| | 438 | | public static async Task<JobScheduleAddHeaders> AddAsync(this IJobScheduleOperations operations, JobSchedule |
| | 439 | | { |
| 0 | 440 | | using (var _result = await operations.AddWithHttpMessagesAsync(cloudJobSchedule, jobScheduleAddOptions, |
| | 441 | | { |
| 0 | 442 | | return _result.Headers; |
| | 443 | | } |
| 0 | 444 | | } |
| | 445 | |
|
| | 446 | | /// <summary> |
| | 447 | | /// Lists all of the Job Schedules in the specified Account. |
| | 448 | | /// </summary> |
| | 449 | | /// <param name='operations'> |
| | 450 | | /// The operations group for this extension method. |
| | 451 | | /// </param> |
| | 452 | | /// <param name='jobScheduleListOptions'> |
| | 453 | | /// Additional parameters for the operation |
| | 454 | | /// </param> |
| | 455 | | public static IPage<CloudJobSchedule> List(this IJobScheduleOperations operations, JobScheduleListOptions jo |
| | 456 | | { |
| 0 | 457 | | return operations.ListAsync(jobScheduleListOptions).GetAwaiter().GetResult(); |
| | 458 | | } |
| | 459 | |
|
| | 460 | | /// <summary> |
| | 461 | | /// Lists all of the Job Schedules in the specified Account. |
| | 462 | | /// </summary> |
| | 463 | | /// <param name='operations'> |
| | 464 | | /// The operations group for this extension method. |
| | 465 | | /// </param> |
| | 466 | | /// <param name='jobScheduleListOptions'> |
| | 467 | | /// Additional parameters for the operation |
| | 468 | | /// </param> |
| | 469 | | /// <param name='cancellationToken'> |
| | 470 | | /// The cancellation token. |
| | 471 | | /// </param> |
| | 472 | | public static async Task<IPage<CloudJobSchedule>> ListAsync(this IJobScheduleOperations operations, JobSched |
| | 473 | | { |
| 0 | 474 | | using (var _result = await operations.ListWithHttpMessagesAsync(jobScheduleListOptions, null, cancellati |
| | 475 | | { |
| 0 | 476 | | return _result.Body; |
| | 477 | | } |
| 0 | 478 | | } |
| | 479 | |
|
| | 480 | | /// <summary> |
| | 481 | | /// Lists all of the Job Schedules in the specified Account. |
| | 482 | | /// </summary> |
| | 483 | | /// <param name='operations'> |
| | 484 | | /// The operations group for this extension method. |
| | 485 | | /// </param> |
| | 486 | | /// <param name='nextPageLink'> |
| | 487 | | /// The NextLink from the previous successful call to List operation. |
| | 488 | | /// </param> |
| | 489 | | /// <param name='jobScheduleListNextOptions'> |
| | 490 | | /// Additional parameters for the operation |
| | 491 | | /// </param> |
| | 492 | | public static IPage<CloudJobSchedule> ListNext(this IJobScheduleOperations operations, string nextPageLink, |
| | 493 | | { |
| 0 | 494 | | return operations.ListNextAsync(nextPageLink, jobScheduleListNextOptions).GetAwaiter().GetResult(); |
| | 495 | | } |
| | 496 | |
|
| | 497 | | /// <summary> |
| | 498 | | /// Lists all of the Job Schedules in the specified Account. |
| | 499 | | /// </summary> |
| | 500 | | /// <param name='operations'> |
| | 501 | | /// The operations group for this extension method. |
| | 502 | | /// </param> |
| | 503 | | /// <param name='nextPageLink'> |
| | 504 | | /// The NextLink from the previous successful call to List operation. |
| | 505 | | /// </param> |
| | 506 | | /// <param name='jobScheduleListNextOptions'> |
| | 507 | | /// Additional parameters for the operation |
| | 508 | | /// </param> |
| | 509 | | /// <param name='cancellationToken'> |
| | 510 | | /// The cancellation token. |
| | 511 | | /// </param> |
| | 512 | | public static async Task<IPage<CloudJobSchedule>> ListNextAsync(this IJobScheduleOperations operations, stri |
| | 513 | | { |
| 0 | 514 | | using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, jobScheduleListNextOpt |
| | 515 | | { |
| 0 | 516 | | return _result.Body; |
| | 517 | | } |
| 0 | 518 | | } |
| | 519 | |
|
| | 520 | | } |
| | 521 | | } |