@azure/arm-containerregistry 10.1.0-alpha.20220413.1 → 10.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +3 -12
  2. package/dist/index.js +125 -42
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/webhooksCreateSample.js +1 -1
  7. package/dist-esm/samples-dev/webhooksCreateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/webhooksUpdateSample.js +1 -1
  9. package/dist-esm/samples-dev/webhooksUpdateSample.js.map +1 -1
  10. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  11. package/dist-esm/src/containerRegistryManagementClient.js +2 -1
  12. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  13. package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
  14. package/dist-esm/src/operations/agentPools.js +9 -3
  15. package/dist-esm/src/operations/agentPools.js.map +1 -1
  16. package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
  17. package/dist-esm/src/operations/connectedRegistries.js +12 -4
  18. package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
  19. package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
  20. package/dist-esm/src/operations/exportPipelines.js +6 -2
  21. package/dist-esm/src/operations/exportPipelines.js.map +1 -1
  22. package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
  23. package/dist-esm/src/operations/importPipelines.js +6 -2
  24. package/dist-esm/src/operations/importPipelines.js.map +1 -1
  25. package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -1
  26. package/dist-esm/src/operations/pipelineRuns.js +6 -2
  27. package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
  28. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  29. package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
  30. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  31. package/dist-esm/src/operations/registries.d.ts.map +1 -1
  32. package/dist-esm/src/operations/registries.js +18 -6
  33. package/dist-esm/src/operations/registries.js.map +1 -1
  34. package/dist-esm/src/operations/replications.d.ts.map +1 -1
  35. package/dist-esm/src/operations/replications.js +9 -3
  36. package/dist-esm/src/operations/replications.js.map +1 -1
  37. package/dist-esm/src/operations/runs.d.ts.map +1 -1
  38. package/dist-esm/src/operations/runs.js +6 -2
  39. package/dist-esm/src/operations/runs.js.map +1 -1
  40. package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
  41. package/dist-esm/src/operations/scopeMaps.js +9 -3
  42. package/dist-esm/src/operations/scopeMaps.js.map +1 -1
  43. package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
  44. package/dist-esm/src/operations/taskRuns.js +9 -3
  45. package/dist-esm/src/operations/taskRuns.js.map +1 -1
  46. package/dist-esm/src/operations/tasks.d.ts.map +1 -1
  47. package/dist-esm/src/operations/tasks.js +9 -3
  48. package/dist-esm/src/operations/tasks.js.map +1 -1
  49. package/dist-esm/src/operations/tokens.d.ts.map +1 -1
  50. package/dist-esm/src/operations/tokens.js +9 -3
  51. package/dist-esm/src/operations/tokens.js.map +1 -1
  52. package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
  53. package/dist-esm/src/operations/webhooks.js +9 -3
  54. package/dist-esm/src/operations/webhooks.js.map +1 -1
  55. package/package.json +2 -2
  56. package/src/containerRegistryManagementClient.ts +2 -1
  57. package/src/operations/agentPools.ts +9 -3
  58. package/src/operations/connectedRegistries.ts +12 -4
  59. package/src/operations/exportPipelines.ts +6 -2
  60. package/src/operations/importPipelines.ts +6 -2
  61. package/src/operations/pipelineRuns.ts +6 -2
  62. package/src/operations/privateEndpointConnections.ts +6 -2
  63. package/src/operations/registries.ts +18 -6
  64. package/src/operations/replications.ts +9 -3
  65. package/src/operations/runs.ts +6 -2
  66. package/src/operations/scopeMaps.ts +9 -3
  67. package/src/operations/taskRuns.ts +9 -3
  68. package/src/operations/tasks.ts +9 -3
  69. package/src/operations/tokens.ts +9 -3
  70. package/src/operations/webhooks.ts +9 -3
  71. package/tsconfig.json +1 -1
  72. package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,16 +1,6 @@
1
1
  # Release History
2
-
3
- ## 10.1.0-beta.2 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
13
- ## 10.1.0-beta.1 (2022-03-02)
2
+
3
+ ## 10.1.0-beta.2 (2022-04-12)
14
4
 
15
5
  **Features**
16
6
 
@@ -164,6 +154,7 @@
164
154
  - Added Enum KnownTokenCertificateName
165
155
  - Added Enum KnownTokenPasswordName
166
156
  - Added Enum KnownTokenStatus
157
+ - Bug fix
167
158
 
168
159
 
169
160
  ## 10.0.0 (2021-12-28)
package/dist/index.js CHANGED
@@ -6555,10 +6555,12 @@ class ConnectedRegistriesImpl {
6555
6555
  connectedRegistryCreateParameters,
6556
6556
  options
6557
6557
  }, createOperationSpec$b);
6558
- return new coreLro.LroEngine(lro, {
6558
+ const poller = new coreLro.LroEngine(lro, {
6559
6559
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6560
6560
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6561
6561
  });
6562
+ yield poller.poll();
6563
+ return poller;
6562
6564
  });
6563
6565
  }
6564
6566
  /**
@@ -6607,10 +6609,12 @@ class ConnectedRegistriesImpl {
6607
6609
  };
6608
6610
  });
6609
6611
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, connectedRegistryName, options }, deleteOperationSpec$c);
6610
- return new coreLro.LroEngine(lro, {
6612
+ const poller = new coreLro.LroEngine(lro, {
6611
6613
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6612
6614
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6613
6615
  });
6616
+ yield poller.poll();
6617
+ return poller;
6614
6618
  });
6615
6619
  }
6616
6620
  /**
@@ -6665,10 +6669,12 @@ class ConnectedRegistriesImpl {
6665
6669
  connectedRegistryUpdateParameters,
6666
6670
  options
6667
6671
  }, updateOperationSpec$9);
6668
- return new coreLro.LroEngine(lro, {
6672
+ const poller = new coreLro.LroEngine(lro, {
6669
6673
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6670
6674
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6671
6675
  });
6676
+ yield poller.poll();
6677
+ return poller;
6672
6678
  });
6673
6679
  }
6674
6680
  /**
@@ -6717,10 +6723,12 @@ class ConnectedRegistriesImpl {
6717
6723
  };
6718
6724
  });
6719
6725
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, connectedRegistryName, options }, deactivateOperationSpec);
6720
- return new coreLro.LroEngine(lro, {
6726
+ const poller = new coreLro.LroEngine(lro, {
6721
6727
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6722
6728
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6723
6729
  });
6730
+ yield poller.poll();
6731
+ return poller;
6724
6732
  });
6725
6733
  }
6726
6734
  /**
@@ -7052,10 +7060,12 @@ class ExportPipelinesImpl {
7052
7060
  exportPipelineCreateParameters,
7053
7061
  options
7054
7062
  }, createOperationSpec$a);
7055
- return new coreLro.LroEngine(lro, {
7063
+ const poller = new coreLro.LroEngine(lro, {
7056
7064
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7057
7065
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7058
7066
  });
7067
+ yield poller.poll();
7068
+ return poller;
7059
7069
  });
7060
7070
  }
7061
7071
  /**
@@ -7104,10 +7114,12 @@ class ExportPipelinesImpl {
7104
7114
  };
7105
7115
  });
7106
7116
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, exportPipelineName, options }, deleteOperationSpec$b);
7107
- return new coreLro.LroEngine(lro, {
7117
+ const poller = new coreLro.LroEngine(lro, {
7108
7118
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7109
7119
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7110
7120
  });
7121
+ yield poller.poll();
7122
+ return poller;
7111
7123
  });
7112
7124
  }
7113
7125
  /**
@@ -7454,10 +7466,12 @@ class RegistriesImpl {
7454
7466
  };
7455
7467
  });
7456
7468
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, parameters, options }, importImageOperationSpec);
7457
- return new coreLro.LroEngine(lro, {
7469
+ const poller = new coreLro.LroEngine(lro, {
7458
7470
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7459
7471
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7460
7472
  });
7473
+ yield poller.poll();
7474
+ return poller;
7461
7475
  });
7462
7476
  }
7463
7477
  /**
@@ -7538,10 +7552,12 @@ class RegistriesImpl {
7538
7552
  };
7539
7553
  });
7540
7554
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, registry, options }, createOperationSpec$9);
7541
- return new coreLro.LroEngine(lro, {
7555
+ const poller = new coreLro.LroEngine(lro, {
7542
7556
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7543
7557
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7544
7558
  });
7559
+ yield poller.poll();
7560
+ return poller;
7545
7561
  });
7546
7562
  }
7547
7563
  /**
@@ -7588,10 +7604,12 @@ class RegistriesImpl {
7588
7604
  };
7589
7605
  });
7590
7606
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, options }, deleteOperationSpec$a);
7591
- return new coreLro.LroEngine(lro, {
7607
+ const poller = new coreLro.LroEngine(lro, {
7592
7608
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7593
7609
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7594
7610
  });
7611
+ yield poller.poll();
7612
+ return poller;
7595
7613
  });
7596
7614
  }
7597
7615
  /**
@@ -7638,10 +7656,12 @@ class RegistriesImpl {
7638
7656
  };
7639
7657
  });
7640
7658
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, registryUpdateParameters, options }, updateOperationSpec$8);
7641
- return new coreLro.LroEngine(lro, {
7659
+ const poller = new coreLro.LroEngine(lro, {
7642
7660
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7643
7661
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7644
7662
  });
7663
+ yield poller.poll();
7664
+ return poller;
7645
7665
  });
7646
7666
  }
7647
7667
  /**
@@ -7747,10 +7767,12 @@ class RegistriesImpl {
7747
7767
  generateCredentialsParameters,
7748
7768
  options
7749
7769
  }, generateCredentialsOperationSpec);
7750
- return new coreLro.LroEngine(lro, {
7770
+ const poller = new coreLro.LroEngine(lro, {
7751
7771
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7752
7772
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7753
7773
  });
7774
+ yield poller.poll();
7775
+ return poller;
7754
7776
  });
7755
7777
  }
7756
7778
  /**
@@ -7798,10 +7820,12 @@ class RegistriesImpl {
7798
7820
  };
7799
7821
  });
7800
7822
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, runRequest, options }, scheduleRunOperationSpec);
7801
- return new coreLro.LroEngine(lro, {
7823
+ const poller = new coreLro.LroEngine(lro, {
7802
7824
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7803
7825
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7804
7826
  });
7827
+ yield poller.poll();
7828
+ return poller;
7805
7829
  });
7806
7830
  }
7807
7831
  /**
@@ -8368,10 +8392,12 @@ class ImportPipelinesImpl {
8368
8392
  importPipelineCreateParameters,
8369
8393
  options
8370
8394
  }, createOperationSpec$8);
8371
- return new coreLro.LroEngine(lro, {
8395
+ const poller = new coreLro.LroEngine(lro, {
8372
8396
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8373
8397
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8374
8398
  });
8399
+ yield poller.poll();
8400
+ return poller;
8375
8401
  });
8376
8402
  }
8377
8403
  /**
@@ -8420,10 +8446,12 @@ class ImportPipelinesImpl {
8420
8446
  };
8421
8447
  });
8422
8448
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, importPipelineName, options }, deleteOperationSpec$9);
8423
- return new coreLro.LroEngine(lro, {
8449
+ const poller = new coreLro.LroEngine(lro, {
8424
8450
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8425
8451
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8426
8452
  });
8453
+ yield poller.poll();
8454
+ return poller;
8427
8455
  });
8428
8456
  }
8429
8457
  /**
@@ -8809,10 +8837,12 @@ class PipelineRunsImpl {
8809
8837
  pipelineRunCreateParameters,
8810
8838
  options
8811
8839
  }, createOperationSpec$7);
8812
- return new coreLro.LroEngine(lro, {
8840
+ const poller = new coreLro.LroEngine(lro, {
8813
8841
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8814
8842
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8815
8843
  });
8844
+ yield poller.poll();
8845
+ return poller;
8816
8846
  });
8817
8847
  }
8818
8848
  /**
@@ -8861,10 +8891,12 @@ class PipelineRunsImpl {
8861
8891
  };
8862
8892
  });
8863
8893
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, pipelineRunName, options }, deleteOperationSpec$8);
8864
- return new coreLro.LroEngine(lro, {
8894
+ const poller = new coreLro.LroEngine(lro, {
8865
8895
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8866
8896
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8867
8897
  });
8898
+ yield poller.poll();
8899
+ return poller;
8868
8900
  });
8869
8901
  }
8870
8902
  /**
@@ -9145,10 +9177,12 @@ class PrivateEndpointConnectionsImpl {
9145
9177
  privateEndpointConnection,
9146
9178
  options
9147
9179
  }, createOrUpdateOperationSpec);
9148
- return new coreLro.LroEngine(lro, {
9180
+ const poller = new coreLro.LroEngine(lro, {
9149
9181
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9150
9182
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9151
9183
  });
9184
+ yield poller.poll();
9185
+ return poller;
9152
9186
  });
9153
9187
  }
9154
9188
  /**
@@ -9202,10 +9236,12 @@ class PrivateEndpointConnectionsImpl {
9202
9236
  privateEndpointConnectionName,
9203
9237
  options
9204
9238
  }, deleteOperationSpec$7);
9205
- return new coreLro.LroEngine(lro, {
9239
+ const poller = new coreLro.LroEngine(lro, {
9206
9240
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9207
9241
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9208
9242
  });
9243
+ yield poller.poll();
9244
+ return poller;
9209
9245
  });
9210
9246
  }
9211
9247
  /**
@@ -9460,10 +9496,12 @@ class ReplicationsImpl {
9460
9496
  replication,
9461
9497
  options
9462
9498
  }, createOperationSpec$6);
9463
- return new coreLro.LroEngine(lro, {
9499
+ const poller = new coreLro.LroEngine(lro, {
9464
9500
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9465
9501
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9466
9502
  });
9503
+ yield poller.poll();
9504
+ return poller;
9467
9505
  });
9468
9506
  }
9469
9507
  /**
@@ -9512,10 +9550,12 @@ class ReplicationsImpl {
9512
9550
  };
9513
9551
  });
9514
9552
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, replicationName, options }, deleteOperationSpec$6);
9515
- return new coreLro.LroEngine(lro, {
9553
+ const poller = new coreLro.LroEngine(lro, {
9516
9554
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9517
9555
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9518
9556
  });
9557
+ yield poller.poll();
9558
+ return poller;
9519
9559
  });
9520
9560
  }
9521
9561
  /**
@@ -9570,10 +9610,12 @@ class ReplicationsImpl {
9570
9610
  replicationUpdateParameters,
9571
9611
  options
9572
9612
  }, updateOperationSpec$7);
9573
- return new coreLro.LroEngine(lro, {
9613
+ const poller = new coreLro.LroEngine(lro, {
9574
9614
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9575
9615
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9576
9616
  });
9617
+ yield poller.poll();
9618
+ return poller;
9577
9619
  });
9578
9620
  }
9579
9621
  /**
@@ -9859,10 +9901,12 @@ class ScopeMapsImpl {
9859
9901
  scopeMapCreateParameters,
9860
9902
  options
9861
9903
  }, createOperationSpec$5);
9862
- return new coreLro.LroEngine(lro, {
9904
+ const poller = new coreLro.LroEngine(lro, {
9863
9905
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9864
9906
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9865
9907
  });
9908
+ yield poller.poll();
9909
+ return poller;
9866
9910
  });
9867
9911
  }
9868
9912
  /**
@@ -9911,10 +9955,12 @@ class ScopeMapsImpl {
9911
9955
  };
9912
9956
  });
9913
9957
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, scopeMapName, options }, deleteOperationSpec$5);
9914
- return new coreLro.LroEngine(lro, {
9958
+ const poller = new coreLro.LroEngine(lro, {
9915
9959
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9916
9960
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9917
9961
  });
9962
+ yield poller.poll();
9963
+ return poller;
9918
9964
  });
9919
9965
  }
9920
9966
  /**
@@ -9969,10 +10015,12 @@ class ScopeMapsImpl {
9969
10015
  scopeMapUpdateParameters,
9970
10016
  options
9971
10017
  }, updateOperationSpec$6);
9972
- return new coreLro.LroEngine(lro, {
10018
+ const poller = new coreLro.LroEngine(lro, {
9973
10019
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9974
10020
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9975
10021
  });
10022
+ yield poller.poll();
10023
+ return poller;
9976
10024
  });
9977
10025
  }
9978
10026
  /**
@@ -10282,10 +10330,12 @@ class TokensImpl {
10282
10330
  tokenCreateParameters,
10283
10331
  options
10284
10332
  }, createOperationSpec$4);
10285
- return new coreLro.LroEngine(lro, {
10333
+ const poller = new coreLro.LroEngine(lro, {
10286
10334
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10287
10335
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10288
10336
  });
10337
+ yield poller.poll();
10338
+ return poller;
10289
10339
  });
10290
10340
  }
10291
10341
  /**
@@ -10334,10 +10384,12 @@ class TokensImpl {
10334
10384
  };
10335
10385
  });
10336
10386
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, tokenName, options }, deleteOperationSpec$4);
10337
- return new coreLro.LroEngine(lro, {
10387
+ const poller = new coreLro.LroEngine(lro, {
10338
10388
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10339
10389
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10340
10390
  });
10391
+ yield poller.poll();
10392
+ return poller;
10341
10393
  });
10342
10394
  }
10343
10395
  /**
@@ -10392,10 +10444,12 @@ class TokensImpl {
10392
10444
  tokenUpdateParameters,
10393
10445
  options
10394
10446
  }, updateOperationSpec$5);
10395
- return new coreLro.LroEngine(lro, {
10447
+ const poller = new coreLro.LroEngine(lro, {
10396
10448
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10397
10449
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10398
10450
  });
10451
+ yield poller.poll();
10452
+ return poller;
10399
10453
  });
10400
10454
  }
10401
10455
  /**
@@ -10756,10 +10810,12 @@ class WebhooksImpl {
10756
10810
  webhookCreateParameters,
10757
10811
  options
10758
10812
  }, createOperationSpec$3);
10759
- return new coreLro.LroEngine(lro, {
10813
+ const poller = new coreLro.LroEngine(lro, {
10760
10814
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10761
10815
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10762
10816
  });
10817
+ yield poller.poll();
10818
+ return poller;
10763
10819
  });
10764
10820
  }
10765
10821
  /**
@@ -10808,10 +10864,12 @@ class WebhooksImpl {
10808
10864
  };
10809
10865
  });
10810
10866
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, webhookName, options }, deleteOperationSpec$3);
10811
- return new coreLro.LroEngine(lro, {
10867
+ const poller = new coreLro.LroEngine(lro, {
10812
10868
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10813
10869
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10814
10870
  });
10871
+ yield poller.poll();
10872
+ return poller;
10815
10873
  });
10816
10874
  }
10817
10875
  /**
@@ -10866,10 +10924,12 @@ class WebhooksImpl {
10866
10924
  webhookUpdateParameters,
10867
10925
  options
10868
10926
  }, updateOperationSpec$4);
10869
- return new coreLro.LroEngine(lro, {
10927
+ const poller = new coreLro.LroEngine(lro, {
10870
10928
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10871
10929
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10872
10930
  });
10931
+ yield poller.poll();
10932
+ return poller;
10873
10933
  });
10874
10934
  }
10875
10935
  /**
@@ -11258,10 +11318,12 @@ class AgentPoolsImpl {
11258
11318
  };
11259
11319
  });
11260
11320
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, agentPoolName, agentPool, options }, createOperationSpec$2);
11261
- return new coreLro.LroEngine(lro, {
11321
+ const poller = new coreLro.LroEngine(lro, {
11262
11322
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11263
11323
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11264
11324
  });
11325
+ yield poller.poll();
11326
+ return poller;
11265
11327
  });
11266
11328
  }
11267
11329
  /**
@@ -11310,10 +11372,12 @@ class AgentPoolsImpl {
11310
11372
  };
11311
11373
  });
11312
11374
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, agentPoolName, options }, deleteOperationSpec$2);
11313
- return new coreLro.LroEngine(lro, {
11375
+ const poller = new coreLro.LroEngine(lro, {
11314
11376
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11315
11377
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11316
11378
  });
11379
+ yield poller.poll();
11380
+ return poller;
11317
11381
  });
11318
11382
  }
11319
11383
  /**
@@ -11368,10 +11432,12 @@ class AgentPoolsImpl {
11368
11432
  updateParameters,
11369
11433
  options
11370
11434
  }, updateOperationSpec$3);
11371
- return new coreLro.LroEngine(lro, {
11435
+ const poller = new coreLro.LroEngine(lro, {
11372
11436
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11373
11437
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11374
11438
  });
11439
+ yield poller.poll();
11440
+ return poller;
11375
11441
  });
11376
11442
  }
11377
11443
  /**
@@ -11716,10 +11782,12 @@ class RunsImpl {
11716
11782
  };
11717
11783
  });
11718
11784
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, runId, runUpdateParameters, options }, updateOperationSpec$2);
11719
- return new coreLro.LroEngine(lro, {
11785
+ const poller = new coreLro.LroEngine(lro, {
11720
11786
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11721
11787
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11722
11788
  });
11789
+ yield poller.poll();
11790
+ return poller;
11723
11791
  });
11724
11792
  }
11725
11793
  /**
@@ -11778,10 +11846,12 @@ class RunsImpl {
11778
11846
  };
11779
11847
  });
11780
11848
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, runId, options }, cancelOperationSpec);
11781
- return new coreLro.LroEngine(lro, {
11849
+ const poller = new coreLro.LroEngine(lro, {
11782
11850
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11783
11851
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11784
11852
  });
11853
+ yield poller.poll();
11854
+ return poller;
11785
11855
  });
11786
11856
  }
11787
11857
  /**
@@ -12064,10 +12134,12 @@ class TaskRunsImpl {
12064
12134
  };
12065
12135
  });
12066
12136
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, taskRunName, taskRun, options }, createOperationSpec$1);
12067
- return new coreLro.LroEngine(lro, {
12137
+ const poller = new coreLro.LroEngine(lro, {
12068
12138
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12069
12139
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
12070
12140
  });
12141
+ yield poller.poll();
12142
+ return poller;
12071
12143
  });
12072
12144
  }
12073
12145
  /**
@@ -12116,10 +12188,12 @@ class TaskRunsImpl {
12116
12188
  };
12117
12189
  });
12118
12190
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, taskRunName, options }, deleteOperationSpec$1);
12119
- return new coreLro.LroEngine(lro, {
12191
+ const poller = new coreLro.LroEngine(lro, {
12120
12192
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12121
12193
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
12122
12194
  });
12195
+ yield poller.poll();
12196
+ return poller;
12123
12197
  });
12124
12198
  }
12125
12199
  /**
@@ -12174,10 +12248,12 @@ class TaskRunsImpl {
12174
12248
  updateParameters,
12175
12249
  options
12176
12250
  }, updateOperationSpec$1);
12177
- return new coreLro.LroEngine(lro, {
12251
+ const poller = new coreLro.LroEngine(lro, {
12178
12252
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12179
12253
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
12180
12254
  });
12255
+ yield poller.poll();
12256
+ return poller;
12181
12257
  });
12182
12258
  }
12183
12259
  /**
@@ -12528,10 +12604,12 @@ class TasksImpl {
12528
12604
  taskCreateParameters,
12529
12605
  options
12530
12606
  }, createOperationSpec);
12531
- return new coreLro.LroEngine(lro, {
12607
+ const poller = new coreLro.LroEngine(lro, {
12532
12608
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12533
12609
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
12534
12610
  });
12611
+ yield poller.poll();
12612
+ return poller;
12535
12613
  });
12536
12614
  }
12537
12615
  /**
@@ -12580,10 +12658,12 @@ class TasksImpl {
12580
12658
  };
12581
12659
  });
12582
12660
  const lro = new LroImpl(sendOperation, { resourceGroupName, registryName, taskName, options }, deleteOperationSpec);
12583
- return new coreLro.LroEngine(lro, {
12661
+ const poller = new coreLro.LroEngine(lro, {
12584
12662
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12585
12663
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
12586
12664
  });
12665
+ yield poller.poll();
12666
+ return poller;
12587
12667
  });
12588
12668
  }
12589
12669
  /**
@@ -12638,10 +12718,12 @@ class TasksImpl {
12638
12718
  taskUpdateParameters,
12639
12719
  options
12640
12720
  }, updateOperationSpec);
12641
- return new coreLro.LroEngine(lro, {
12721
+ const poller = new coreLro.LroEngine(lro, {
12642
12722
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12643
12723
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
12644
12724
  });
12725
+ yield poller.poll();
12726
+ return poller;
12645
12727
  });
12646
12728
  }
12647
12729
  /**
@@ -12873,6 +12955,7 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
12873
12955
  * @param options The parameter options
12874
12956
  */
12875
12957
  constructor(credentials, subscriptionId, options) {
12958
+ var _a, _b;
12876
12959
  if (credentials === undefined) {
12877
12960
  throw new Error("'credentials' cannot be null");
12878
12961
  }
@@ -12896,7 +12979,7 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
12896
12979
  }
12897
12980
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
12898
12981
  userAgentPrefix
12899
- }, baseUri: options.endpoint || "https://management.azure.com" });
12982
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
12900
12983
  super(optionsWithDefaults);
12901
12984
  // Parameter assignments
12902
12985
  this.subscriptionId = subscriptionId;