@azure/arm-cognitiveservices 7.4.1-alpha.20230724.1 → 7.5.0
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.
- package/CHANGELOG.md +37 -10
- package/dist/index.js +770 -166
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateSample.js +2 -2
- package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
- package/dist-esm/samples-dev/accountsListModelsSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSkusSample.js +1 -1
- package/dist-esm/samples-dev/accountsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentTiersListSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +3 -5
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsListSample.js +1 -1
- package/dist-esm/samples-dev/modelsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/modelsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/modelsListSample.js +59 -0
- package/dist-esm/samples-dev/modelsListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
- package/dist-esm/samples-dev/resourceSkusListSample.js +1 -1
- package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.js +59 -0
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts +3 -1
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.js +5 -3
- package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +144 -5
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +24 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +229 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/accounts.d.ts +4 -4
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +26 -14
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts +7 -7
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.js +66 -42
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.d.ts +2 -2
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +10 -6
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/deployments.d.ts +3 -3
- package/dist-esm/src/operations/deployments.d.ts.map +1 -1
- package/dist-esm/src/operations/deployments.js +26 -11
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/models.d.ts +35 -0
- package/dist-esm/src/operations/models.d.ts.map +1 -0
- package/dist-esm/src/operations/models.js +150 -0
- package/dist-esm/src/operations/models.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts +35 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +150 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/deployments.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/models.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/models.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/models.js +9 -0
- package/dist-esm/src/operationsInterfaces/models.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.js +1 -1
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.js.map +1 -1
- package/dist-esm/test/cognitiveservices_openai.spec.js +1 -2
- package/dist-esm/test/cognitiveservices_openai.spec.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-cognitiveservices.api.md +127 -16
- package/src/cognitiveServicesManagementClient.ts +10 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +160 -5
- package/src/models/mappers.ts +236 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/accounts.ts +41 -31
- package/src/operations/commitmentPlans.ts +77 -64
- package/src/operations/deletedAccounts.ts +15 -11
- package/src/operations/deployments.ts +36 -22
- package/src/operations/index.ts +2 -0
- package/src/operations/models.ts +170 -0
- package/src/operations/privateEndpointConnections.ts +28 -21
- package/src/operations/usages.ts +170 -0
- package/src/operationsInterfaces/accounts.ts +6 -6
- package/src/operationsInterfaces/commitmentPlans.ts +10 -10
- package/src/operationsInterfaces/deletedAccounts.ts +2 -2
- package/src/operationsInterfaces/deployments.ts +4 -4
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/models.ts +24 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/usages.ts +24 -0
- package/types/arm-cognitiveservices.d.ts +199 -21
package/dist/index.js
CHANGED
|
@@ -167,6 +167,14 @@ exports.KnownRoutingMethods = void 0;
|
|
|
167
167
|
/** Performance */
|
|
168
168
|
KnownRoutingMethods["Performance"] = "Performance";
|
|
169
169
|
})(exports.KnownRoutingMethods || (exports.KnownRoutingMethods = {}));
|
|
170
|
+
/** Known values of {@link AbusePenaltyAction} that the service accepts. */
|
|
171
|
+
exports.KnownAbusePenaltyAction = void 0;
|
|
172
|
+
(function (KnownAbusePenaltyAction) {
|
|
173
|
+
/** Throttle */
|
|
174
|
+
KnownAbusePenaltyAction["Throttle"] = "Throttle";
|
|
175
|
+
/** Block */
|
|
176
|
+
KnownAbusePenaltyAction["Block"] = "Block";
|
|
177
|
+
})(exports.KnownAbusePenaltyAction || (exports.KnownAbusePenaltyAction = {}));
|
|
170
178
|
/** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
|
|
171
179
|
exports.KnownResourceSkuRestrictionsReasonCode = void 0;
|
|
172
180
|
(function (KnownResourceSkuRestrictionsReasonCode) {
|
|
@@ -238,6 +246,8 @@ exports.KnownHostingModel = void 0;
|
|
|
238
246
|
KnownHostingModel["ConnectedContainer"] = "ConnectedContainer";
|
|
239
247
|
/** DisconnectedContainer */
|
|
240
248
|
KnownHostingModel["DisconnectedContainer"] = "DisconnectedContainer";
|
|
249
|
+
/** ProvisionedWeb */
|
|
250
|
+
KnownHostingModel["ProvisionedWeb"] = "ProvisionedWeb";
|
|
241
251
|
})(exports.KnownHostingModel || (exports.KnownHostingModel = {}));
|
|
242
252
|
/** Known values of {@link DeploymentProvisioningState} that the service accepts. */
|
|
243
253
|
exports.KnownDeploymentProvisioningState = void 0;
|
|
@@ -254,6 +264,10 @@ exports.KnownDeploymentProvisioningState = void 0;
|
|
|
254
264
|
KnownDeploymentProvisioningState["Failed"] = "Failed";
|
|
255
265
|
/** Succeeded */
|
|
256
266
|
KnownDeploymentProvisioningState["Succeeded"] = "Succeeded";
|
|
267
|
+
/** Disabled */
|
|
268
|
+
KnownDeploymentProvisioningState["Disabled"] = "Disabled";
|
|
269
|
+
/** Canceled */
|
|
270
|
+
KnownDeploymentProvisioningState["Canceled"] = "Canceled";
|
|
257
271
|
})(exports.KnownDeploymentProvisioningState || (exports.KnownDeploymentProvisioningState = {}));
|
|
258
272
|
/** Known values of {@link DeploymentScaleType} that the service accepts. */
|
|
259
273
|
exports.KnownDeploymentScaleType = void 0;
|
|
@@ -263,6 +277,16 @@ exports.KnownDeploymentScaleType = void 0;
|
|
|
263
277
|
/** Manual */
|
|
264
278
|
KnownDeploymentScaleType["Manual"] = "Manual";
|
|
265
279
|
})(exports.KnownDeploymentScaleType || (exports.KnownDeploymentScaleType = {}));
|
|
280
|
+
/** Known values of {@link DeploymentModelVersionUpgradeOption} that the service accepts. */
|
|
281
|
+
exports.KnownDeploymentModelVersionUpgradeOption = void 0;
|
|
282
|
+
(function (KnownDeploymentModelVersionUpgradeOption) {
|
|
283
|
+
/** OnceNewDefaultVersionAvailable */
|
|
284
|
+
KnownDeploymentModelVersionUpgradeOption["OnceNewDefaultVersionAvailable"] = "OnceNewDefaultVersionAvailable";
|
|
285
|
+
/** OnceCurrentVersionExpired */
|
|
286
|
+
KnownDeploymentModelVersionUpgradeOption["OnceCurrentVersionExpired"] = "OnceCurrentVersionExpired";
|
|
287
|
+
/** NoAutoUpgrade */
|
|
288
|
+
KnownDeploymentModelVersionUpgradeOption["NoAutoUpgrade"] = "NoAutoUpgrade";
|
|
289
|
+
})(exports.KnownDeploymentModelVersionUpgradeOption || (exports.KnownDeploymentModelVersionUpgradeOption = {}));
|
|
266
290
|
/** Known values of {@link CommitmentPlanProvisioningState} that the service accepts. */
|
|
267
291
|
exports.KnownCommitmentPlanProvisioningState = void 0;
|
|
268
292
|
(function (KnownCommitmentPlanProvisioningState) {
|
|
@@ -651,6 +675,13 @@ const AccountProperties = {
|
|
|
651
675
|
}
|
|
652
676
|
}
|
|
653
677
|
}
|
|
678
|
+
},
|
|
679
|
+
abusePenalty: {
|
|
680
|
+
serializedName: "abusePenalty",
|
|
681
|
+
type: {
|
|
682
|
+
name: "Composite",
|
|
683
|
+
className: "AbusePenalty"
|
|
684
|
+
}
|
|
654
685
|
}
|
|
655
686
|
}
|
|
656
687
|
}
|
|
@@ -1260,6 +1291,32 @@ const CommitmentPlanAssociation = {
|
|
|
1260
1291
|
}
|
|
1261
1292
|
}
|
|
1262
1293
|
};
|
|
1294
|
+
const AbusePenalty = {
|
|
1295
|
+
type: {
|
|
1296
|
+
name: "Composite",
|
|
1297
|
+
className: "AbusePenalty",
|
|
1298
|
+
modelProperties: {
|
|
1299
|
+
action: {
|
|
1300
|
+
serializedName: "action",
|
|
1301
|
+
type: {
|
|
1302
|
+
name: "String"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
rateLimitPercentage: {
|
|
1306
|
+
serializedName: "rateLimitPercentage",
|
|
1307
|
+
type: {
|
|
1308
|
+
name: "Number"
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
expiration: {
|
|
1312
|
+
serializedName: "expiration",
|
|
1313
|
+
type: {
|
|
1314
|
+
name: "DateTime"
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
};
|
|
1263
1320
|
const ErrorResponse = {
|
|
1264
1321
|
type: {
|
|
1265
1322
|
name: "Composite",
|
|
@@ -1613,6 +1670,12 @@ const UsageListResult = {
|
|
|
1613
1670
|
name: "Composite",
|
|
1614
1671
|
className: "UsageListResult",
|
|
1615
1672
|
modelProperties: {
|
|
1673
|
+
nextLink: {
|
|
1674
|
+
serializedName: "nextLink",
|
|
1675
|
+
type: {
|
|
1676
|
+
name: "String"
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1616
1679
|
value: {
|
|
1617
1680
|
serializedName: "value",
|
|
1618
1681
|
type: {
|
|
@@ -1748,6 +1811,12 @@ const DeploymentModel = {
|
|
|
1748
1811
|
name: "String"
|
|
1749
1812
|
}
|
|
1750
1813
|
},
|
|
1814
|
+
source: {
|
|
1815
|
+
serializedName: "source",
|
|
1816
|
+
type: {
|
|
1817
|
+
name: "String"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1751
1820
|
callRateLimit: {
|
|
1752
1821
|
serializedName: "callRateLimit",
|
|
1753
1822
|
type: {
|
|
@@ -1758,6 +1827,83 @@ const DeploymentModel = {
|
|
|
1758
1827
|
}
|
|
1759
1828
|
}
|
|
1760
1829
|
};
|
|
1830
|
+
const ModelSku = {
|
|
1831
|
+
type: {
|
|
1832
|
+
name: "Composite",
|
|
1833
|
+
className: "ModelSku",
|
|
1834
|
+
modelProperties: {
|
|
1835
|
+
name: {
|
|
1836
|
+
serializedName: "name",
|
|
1837
|
+
type: {
|
|
1838
|
+
name: "String"
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1841
|
+
usageName: {
|
|
1842
|
+
serializedName: "usageName",
|
|
1843
|
+
type: {
|
|
1844
|
+
name: "String"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
deprecationDate: {
|
|
1848
|
+
serializedName: "deprecationDate",
|
|
1849
|
+
type: {
|
|
1850
|
+
name: "DateTime"
|
|
1851
|
+
}
|
|
1852
|
+
},
|
|
1853
|
+
capacity: {
|
|
1854
|
+
serializedName: "capacity",
|
|
1855
|
+
type: {
|
|
1856
|
+
name: "Composite",
|
|
1857
|
+
className: "CapacityConfig"
|
|
1858
|
+
}
|
|
1859
|
+
},
|
|
1860
|
+
rateLimits: {
|
|
1861
|
+
serializedName: "rateLimits",
|
|
1862
|
+
type: {
|
|
1863
|
+
name: "Sequence",
|
|
1864
|
+
element: {
|
|
1865
|
+
type: {
|
|
1866
|
+
name: "Composite",
|
|
1867
|
+
className: "CallRateLimit"
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
};
|
|
1875
|
+
const CapacityConfig = {
|
|
1876
|
+
type: {
|
|
1877
|
+
name: "Composite",
|
|
1878
|
+
className: "CapacityConfig",
|
|
1879
|
+
modelProperties: {
|
|
1880
|
+
minimum: {
|
|
1881
|
+
serializedName: "minimum",
|
|
1882
|
+
type: {
|
|
1883
|
+
name: "Number"
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
maximum: {
|
|
1887
|
+
serializedName: "maximum",
|
|
1888
|
+
type: {
|
|
1889
|
+
name: "Number"
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1892
|
+
step: {
|
|
1893
|
+
serializedName: "step",
|
|
1894
|
+
type: {
|
|
1895
|
+
name: "Number"
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
default: {
|
|
1899
|
+
serializedName: "default",
|
|
1900
|
+
type: {
|
|
1901
|
+
name: "Number"
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
};
|
|
1761
1907
|
const ModelDeprecationInfo = {
|
|
1762
1908
|
type: {
|
|
1763
1909
|
name: "Composite",
|
|
@@ -2108,6 +2254,59 @@ const CommitmentCost = {
|
|
|
2108
2254
|
}
|
|
2109
2255
|
}
|
|
2110
2256
|
};
|
|
2257
|
+
const ModelListResult = {
|
|
2258
|
+
type: {
|
|
2259
|
+
name: "Composite",
|
|
2260
|
+
className: "ModelListResult",
|
|
2261
|
+
modelProperties: {
|
|
2262
|
+
nextLink: {
|
|
2263
|
+
serializedName: "nextLink",
|
|
2264
|
+
type: {
|
|
2265
|
+
name: "String"
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
value: {
|
|
2269
|
+
serializedName: "value",
|
|
2270
|
+
type: {
|
|
2271
|
+
name: "Sequence",
|
|
2272
|
+
element: {
|
|
2273
|
+
type: {
|
|
2274
|
+
name: "Composite",
|
|
2275
|
+
className: "Model"
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
};
|
|
2283
|
+
const Model = {
|
|
2284
|
+
type: {
|
|
2285
|
+
name: "Composite",
|
|
2286
|
+
className: "Model",
|
|
2287
|
+
modelProperties: {
|
|
2288
|
+
model: {
|
|
2289
|
+
serializedName: "model",
|
|
2290
|
+
type: {
|
|
2291
|
+
name: "Composite",
|
|
2292
|
+
className: "AccountModel"
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2295
|
+
kind: {
|
|
2296
|
+
serializedName: "kind",
|
|
2297
|
+
type: {
|
|
2298
|
+
name: "String"
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
2301
|
+
skuName: {
|
|
2302
|
+
serializedName: "skuName",
|
|
2303
|
+
type: {
|
|
2304
|
+
name: "String"
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
};
|
|
2111
2310
|
const CheckDomainAvailabilityParameter = {
|
|
2112
2311
|
type: {
|
|
2113
2312
|
name: "Composite",
|
|
@@ -2332,6 +2531,25 @@ const DeploymentProperties = {
|
|
|
2332
2531
|
name: "Composite",
|
|
2333
2532
|
className: "CallRateLimit"
|
|
2334
2533
|
}
|
|
2534
|
+
},
|
|
2535
|
+
rateLimits: {
|
|
2536
|
+
serializedName: "rateLimits",
|
|
2537
|
+
readOnly: true,
|
|
2538
|
+
type: {
|
|
2539
|
+
name: "Sequence",
|
|
2540
|
+
element: {
|
|
2541
|
+
type: {
|
|
2542
|
+
name: "Composite",
|
|
2543
|
+
className: "ThrottlingRule"
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
versionUpgradeOption: {
|
|
2549
|
+
serializedName: "versionUpgradeOption",
|
|
2550
|
+
type: {
|
|
2551
|
+
name: "String"
|
|
2552
|
+
}
|
|
2335
2553
|
}
|
|
2336
2554
|
}
|
|
2337
2555
|
}
|
|
@@ -2446,6 +2664,18 @@ const CommitmentPlanProperties = {
|
|
|
2446
2664
|
name: "Composite",
|
|
2447
2665
|
className: "CommitmentPeriod"
|
|
2448
2666
|
}
|
|
2667
|
+
},
|
|
2668
|
+
provisioningIssues: {
|
|
2669
|
+
serializedName: "provisioningIssues",
|
|
2670
|
+
readOnly: true,
|
|
2671
|
+
type: {
|
|
2672
|
+
name: "Sequence",
|
|
2673
|
+
element: {
|
|
2674
|
+
type: {
|
|
2675
|
+
name: "String"
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2449
2679
|
}
|
|
2450
2680
|
}
|
|
2451
2681
|
}
|
|
@@ -2576,6 +2806,22 @@ const AccountModel = {
|
|
|
2576
2806
|
name: "Composite",
|
|
2577
2807
|
className: "DeploymentModel"
|
|
2578
2808
|
}
|
|
2809
|
+
}, isDefaultVersion: {
|
|
2810
|
+
serializedName: "isDefaultVersion",
|
|
2811
|
+
type: {
|
|
2812
|
+
name: "Boolean"
|
|
2813
|
+
}
|
|
2814
|
+
}, skus: {
|
|
2815
|
+
serializedName: "skus",
|
|
2816
|
+
type: {
|
|
2817
|
+
name: "Sequence",
|
|
2818
|
+
element: {
|
|
2819
|
+
type: {
|
|
2820
|
+
name: "Composite",
|
|
2821
|
+
className: "ModelSku"
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2579
2825
|
}, maxCapacity: {
|
|
2580
2826
|
serializedName: "maxCapacity",
|
|
2581
2827
|
type: {
|
|
@@ -2701,7 +2947,13 @@ const Deployment = {
|
|
|
2701
2947
|
type: {
|
|
2702
2948
|
name: "Composite",
|
|
2703
2949
|
className: "Deployment",
|
|
2704
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), {
|
|
2950
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { sku: {
|
|
2951
|
+
serializedName: "sku",
|
|
2952
|
+
type: {
|
|
2953
|
+
name: "Composite",
|
|
2954
|
+
className: "Sku"
|
|
2955
|
+
}
|
|
2956
|
+
}, systemData: {
|
|
2705
2957
|
serializedName: "systemData",
|
|
2706
2958
|
type: {
|
|
2707
2959
|
name: "Composite",
|
|
@@ -2863,6 +3115,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
2863
3115
|
MultiRegionSettings: MultiRegionSettings,
|
|
2864
3116
|
RegionSetting: RegionSetting,
|
|
2865
3117
|
CommitmentPlanAssociation: CommitmentPlanAssociation,
|
|
3118
|
+
AbusePenalty: AbusePenalty,
|
|
2866
3119
|
ErrorResponse: ErrorResponse,
|
|
2867
3120
|
ErrorDetail: ErrorDetail,
|
|
2868
3121
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
@@ -2880,6 +3133,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
2880
3133
|
MetricName: MetricName,
|
|
2881
3134
|
AccountModelListResult: AccountModelListResult,
|
|
2882
3135
|
DeploymentModel: DeploymentModel,
|
|
3136
|
+
ModelSku: ModelSku,
|
|
3137
|
+
CapacityConfig: CapacityConfig,
|
|
2883
3138
|
ModelDeprecationInfo: ModelDeprecationInfo,
|
|
2884
3139
|
OperationListResult: OperationListResult,
|
|
2885
3140
|
Operation: Operation,
|
|
@@ -2891,6 +3146,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
2891
3146
|
CommitmentTier: CommitmentTier,
|
|
2892
3147
|
CommitmentQuota: CommitmentQuota,
|
|
2893
3148
|
CommitmentCost: CommitmentCost,
|
|
3149
|
+
ModelListResult: ModelListResult,
|
|
3150
|
+
Model: Model,
|
|
2894
3151
|
CheckDomainAvailabilityParameter: CheckDomainAvailabilityParameter,
|
|
2895
3152
|
DomainAvailability: DomainAvailability,
|
|
2896
3153
|
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
@@ -2995,7 +3252,7 @@ const accountName = {
|
|
|
2995
3252
|
const apiVersion = {
|
|
2996
3253
|
parameterPath: "apiVersion",
|
|
2997
3254
|
mapper: {
|
|
2998
|
-
defaultValue: "
|
|
3255
|
+
defaultValue: "2023-05-01",
|
|
2999
3256
|
isConstant: true,
|
|
3000
3257
|
serializedName: "api-version",
|
|
3001
3258
|
type: {
|
|
@@ -3130,25 +3387,17 @@ const association = {
|
|
|
3130
3387
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3131
3388
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3132
3389
|
*/
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
});
|
|
3145
|
-
}
|
|
3146
|
-
sendPollRequest(path) {
|
|
3147
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3148
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
3149
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
3150
|
-
});
|
|
3151
|
-
}
|
|
3390
|
+
function createLroSpec(inputs) {
|
|
3391
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
3392
|
+
return {
|
|
3393
|
+
requestMethod: spec.httpMethod,
|
|
3394
|
+
requestPath: spec.path,
|
|
3395
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
3396
|
+
sendPollRequest: (path, options) => {
|
|
3397
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
3398
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
3399
|
+
}
|
|
3400
|
+
};
|
|
3152
3401
|
}
|
|
3153
3402
|
|
|
3154
3403
|
/*
|
|
@@ -3382,7 +3631,7 @@ class AccountsImpl {
|
|
|
3382
3631
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3383
3632
|
return this.client.sendOperationRequest(args, spec);
|
|
3384
3633
|
});
|
|
3385
|
-
const
|
|
3634
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3386
3635
|
var _a;
|
|
3387
3636
|
let currentRawResponse = undefined;
|
|
3388
3637
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3401,9 +3650,13 @@ class AccountsImpl {
|
|
|
3401
3650
|
}
|
|
3402
3651
|
};
|
|
3403
3652
|
});
|
|
3404
|
-
const lro =
|
|
3405
|
-
|
|
3406
|
-
|
|
3653
|
+
const lro = createLroSpec({
|
|
3654
|
+
sendOperationFn,
|
|
3655
|
+
args: { resourceGroupName, accountName, account, options },
|
|
3656
|
+
spec: createOperationSpec
|
|
3657
|
+
});
|
|
3658
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3659
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3407
3660
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3408
3661
|
});
|
|
3409
3662
|
yield poller.poll();
|
|
@@ -3436,7 +3689,7 @@ class AccountsImpl {
|
|
|
3436
3689
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3437
3690
|
return this.client.sendOperationRequest(args, spec);
|
|
3438
3691
|
});
|
|
3439
|
-
const
|
|
3692
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3440
3693
|
var _a;
|
|
3441
3694
|
let currentRawResponse = undefined;
|
|
3442
3695
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3455,9 +3708,13 @@ class AccountsImpl {
|
|
|
3455
3708
|
}
|
|
3456
3709
|
};
|
|
3457
3710
|
});
|
|
3458
|
-
const lro =
|
|
3459
|
-
|
|
3460
|
-
|
|
3711
|
+
const lro = createLroSpec({
|
|
3712
|
+
sendOperationFn,
|
|
3713
|
+
args: { resourceGroupName, accountName, account, options },
|
|
3714
|
+
spec: updateOperationSpec
|
|
3715
|
+
});
|
|
3716
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3717
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3461
3718
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3462
3719
|
});
|
|
3463
3720
|
yield poller.poll();
|
|
@@ -3488,7 +3745,7 @@ class AccountsImpl {
|
|
|
3488
3745
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3489
3746
|
return this.client.sendOperationRequest(args, spec);
|
|
3490
3747
|
});
|
|
3491
|
-
const
|
|
3748
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3492
3749
|
var _a;
|
|
3493
3750
|
let currentRawResponse = undefined;
|
|
3494
3751
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3507,9 +3764,13 @@ class AccountsImpl {
|
|
|
3507
3764
|
}
|
|
3508
3765
|
};
|
|
3509
3766
|
});
|
|
3510
|
-
const lro =
|
|
3511
|
-
|
|
3512
|
-
|
|
3767
|
+
const lro = createLroSpec({
|
|
3768
|
+
sendOperationFn,
|
|
3769
|
+
args: { resourceGroupName, accountName, options },
|
|
3770
|
+
spec: deleteOperationSpec$3
|
|
3771
|
+
});
|
|
3772
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3773
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3513
3774
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3514
3775
|
});
|
|
3515
3776
|
yield poller.poll();
|
|
@@ -3550,7 +3811,7 @@ class AccountsImpl {
|
|
|
3550
3811
|
* @param options The options parameters.
|
|
3551
3812
|
*/
|
|
3552
3813
|
_list(options) {
|
|
3553
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
3814
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$a);
|
|
3554
3815
|
}
|
|
3555
3816
|
/**
|
|
3556
3817
|
* Lists the account keys for the specified Cognitive Services account.
|
|
@@ -3613,7 +3874,7 @@ class AccountsImpl {
|
|
|
3613
3874
|
* @param options The options parameters.
|
|
3614
3875
|
*/
|
|
3615
3876
|
_listNext(nextLink, options) {
|
|
3616
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
3877
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$8);
|
|
3617
3878
|
}
|
|
3618
3879
|
/**
|
|
3619
3880
|
* ListModelsNext
|
|
@@ -3627,7 +3888,7 @@ class AccountsImpl {
|
|
|
3627
3888
|
}
|
|
3628
3889
|
}
|
|
3629
3890
|
// Operation Specifications
|
|
3630
|
-
const serializer$
|
|
3891
|
+
const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3631
3892
|
const createOperationSpec = {
|
|
3632
3893
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
3633
3894
|
httpMethod: "PUT",
|
|
@@ -3658,7 +3919,7 @@ const createOperationSpec = {
|
|
|
3658
3919
|
],
|
|
3659
3920
|
headerParameters: [contentType, accept],
|
|
3660
3921
|
mediaType: "json",
|
|
3661
|
-
serializer: serializer$
|
|
3922
|
+
serializer: serializer$b
|
|
3662
3923
|
};
|
|
3663
3924
|
const updateOperationSpec = {
|
|
3664
3925
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
@@ -3690,7 +3951,7 @@ const updateOperationSpec = {
|
|
|
3690
3951
|
],
|
|
3691
3952
|
headerParameters: [contentType, accept],
|
|
3692
3953
|
mediaType: "json",
|
|
3693
|
-
serializer: serializer$
|
|
3954
|
+
serializer: serializer$b
|
|
3694
3955
|
};
|
|
3695
3956
|
const deleteOperationSpec$3 = {
|
|
3696
3957
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
@@ -3712,7 +3973,7 @@ const deleteOperationSpec$3 = {
|
|
|
3712
3973
|
subscriptionId
|
|
3713
3974
|
],
|
|
3714
3975
|
headerParameters: [accept],
|
|
3715
|
-
serializer: serializer$
|
|
3976
|
+
serializer: serializer$b
|
|
3716
3977
|
};
|
|
3717
3978
|
const getOperationSpec$4 = {
|
|
3718
3979
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
|
|
@@ -3733,7 +3994,7 @@ const getOperationSpec$4 = {
|
|
|
3733
3994
|
subscriptionId
|
|
3734
3995
|
],
|
|
3735
3996
|
headerParameters: [accept],
|
|
3736
|
-
serializer: serializer$
|
|
3997
|
+
serializer: serializer$b
|
|
3737
3998
|
};
|
|
3738
3999
|
const listByResourceGroupOperationSpec = {
|
|
3739
4000
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",
|
|
@@ -3753,9 +4014,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
3753
4014
|
subscriptionId
|
|
3754
4015
|
],
|
|
3755
4016
|
headerParameters: [accept],
|
|
3756
|
-
serializer: serializer$
|
|
4017
|
+
serializer: serializer$b
|
|
3757
4018
|
};
|
|
3758
|
-
const listOperationSpec$
|
|
4019
|
+
const listOperationSpec$a = {
|
|
3759
4020
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",
|
|
3760
4021
|
httpMethod: "GET",
|
|
3761
4022
|
responses: {
|
|
@@ -3769,7 +4030,7 @@ const listOperationSpec$8 = {
|
|
|
3769
4030
|
queryParameters: [apiVersion],
|
|
3770
4031
|
urlParameters: [$host, subscriptionId],
|
|
3771
4032
|
headerParameters: [accept],
|
|
3772
|
-
serializer: serializer$
|
|
4033
|
+
serializer: serializer$b
|
|
3773
4034
|
};
|
|
3774
4035
|
const listKeysOperationSpec = {
|
|
3775
4036
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",
|
|
@@ -3790,7 +4051,7 @@ const listKeysOperationSpec = {
|
|
|
3790
4051
|
subscriptionId
|
|
3791
4052
|
],
|
|
3792
4053
|
headerParameters: [accept],
|
|
3793
|
-
serializer: serializer$
|
|
4054
|
+
serializer: serializer$b
|
|
3794
4055
|
};
|
|
3795
4056
|
const regenerateKeyOperationSpec = {
|
|
3796
4057
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",
|
|
@@ -3816,7 +4077,7 @@ const regenerateKeyOperationSpec = {
|
|
|
3816
4077
|
],
|
|
3817
4078
|
headerParameters: [contentType, accept],
|
|
3818
4079
|
mediaType: "json",
|
|
3819
|
-
serializer: serializer$
|
|
4080
|
+
serializer: serializer$b
|
|
3820
4081
|
};
|
|
3821
4082
|
const listSkusOperationSpec = {
|
|
3822
4083
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",
|
|
@@ -3837,7 +4098,7 @@ const listSkusOperationSpec = {
|
|
|
3837
4098
|
subscriptionId
|
|
3838
4099
|
],
|
|
3839
4100
|
headerParameters: [accept],
|
|
3840
|
-
serializer: serializer$
|
|
4101
|
+
serializer: serializer$b
|
|
3841
4102
|
};
|
|
3842
4103
|
const listUsagesOperationSpec = {
|
|
3843
4104
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",
|
|
@@ -3858,7 +4119,7 @@ const listUsagesOperationSpec = {
|
|
|
3858
4119
|
subscriptionId
|
|
3859
4120
|
],
|
|
3860
4121
|
headerParameters: [accept],
|
|
3861
|
-
serializer: serializer$
|
|
4122
|
+
serializer: serializer$b
|
|
3862
4123
|
};
|
|
3863
4124
|
const listModelsOperationSpec = {
|
|
3864
4125
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/models",
|
|
@@ -3879,7 +4140,7 @@ const listModelsOperationSpec = {
|
|
|
3879
4140
|
subscriptionId
|
|
3880
4141
|
],
|
|
3881
4142
|
headerParameters: [accept],
|
|
3882
|
-
serializer: serializer$
|
|
4143
|
+
serializer: serializer$b
|
|
3883
4144
|
};
|
|
3884
4145
|
const listByResourceGroupNextOperationSpec = {
|
|
3885
4146
|
path: "{nextLink}",
|
|
@@ -3899,9 +4160,9 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3899
4160
|
nextLink
|
|
3900
4161
|
],
|
|
3901
4162
|
headerParameters: [accept],
|
|
3902
|
-
serializer: serializer$
|
|
4163
|
+
serializer: serializer$b
|
|
3903
4164
|
};
|
|
3904
|
-
const listNextOperationSpec$
|
|
4165
|
+
const listNextOperationSpec$8 = {
|
|
3905
4166
|
path: "{nextLink}",
|
|
3906
4167
|
httpMethod: "GET",
|
|
3907
4168
|
responses: {
|
|
@@ -3918,7 +4179,7 @@ const listNextOperationSpec$6 = {
|
|
|
3918
4179
|
nextLink
|
|
3919
4180
|
],
|
|
3920
4181
|
headerParameters: [accept],
|
|
3921
|
-
serializer: serializer$
|
|
4182
|
+
serializer: serializer$b
|
|
3922
4183
|
};
|
|
3923
4184
|
const listModelsNextOperationSpec = {
|
|
3924
4185
|
path: "{nextLink}",
|
|
@@ -3939,7 +4200,7 @@ const listModelsNextOperationSpec = {
|
|
|
3939
4200
|
nextLink
|
|
3940
4201
|
],
|
|
3941
4202
|
headerParameters: [accept],
|
|
3942
|
-
serializer: serializer$
|
|
4203
|
+
serializer: serializer$b
|
|
3943
4204
|
};
|
|
3944
4205
|
|
|
3945
4206
|
/*
|
|
@@ -4047,7 +4308,7 @@ class DeletedAccountsImpl {
|
|
|
4047
4308
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4048
4309
|
return this.client.sendOperationRequest(args, spec);
|
|
4049
4310
|
});
|
|
4050
|
-
const
|
|
4311
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4051
4312
|
var _a;
|
|
4052
4313
|
let currentRawResponse = undefined;
|
|
4053
4314
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4066,9 +4327,13 @@ class DeletedAccountsImpl {
|
|
|
4066
4327
|
}
|
|
4067
4328
|
};
|
|
4068
4329
|
});
|
|
4069
|
-
const lro =
|
|
4070
|
-
|
|
4071
|
-
|
|
4330
|
+
const lro = createLroSpec({
|
|
4331
|
+
sendOperationFn,
|
|
4332
|
+
args: { location, resourceGroupName, accountName, options },
|
|
4333
|
+
spec: purgeOperationSpec
|
|
4334
|
+
});
|
|
4335
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4336
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4072
4337
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4073
4338
|
});
|
|
4074
4339
|
yield poller.poll();
|
|
@@ -4093,7 +4358,7 @@ class DeletedAccountsImpl {
|
|
|
4093
4358
|
* @param options The options parameters.
|
|
4094
4359
|
*/
|
|
4095
4360
|
_list(options) {
|
|
4096
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
4361
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$9);
|
|
4097
4362
|
}
|
|
4098
4363
|
/**
|
|
4099
4364
|
* ListNext
|
|
@@ -4101,11 +4366,11 @@ class DeletedAccountsImpl {
|
|
|
4101
4366
|
* @param options The options parameters.
|
|
4102
4367
|
*/
|
|
4103
4368
|
_listNext(nextLink, options) {
|
|
4104
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
4369
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
|
|
4105
4370
|
}
|
|
4106
4371
|
}
|
|
4107
4372
|
// Operation Specifications
|
|
4108
|
-
const serializer$
|
|
4373
|
+
const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4109
4374
|
const getOperationSpec$3 = {
|
|
4110
4375
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}",
|
|
4111
4376
|
httpMethod: "GET",
|
|
@@ -4126,7 +4391,7 @@ const getOperationSpec$3 = {
|
|
|
4126
4391
|
location
|
|
4127
4392
|
],
|
|
4128
4393
|
headerParameters: [accept],
|
|
4129
|
-
serializer: serializer$
|
|
4394
|
+
serializer: serializer$a
|
|
4130
4395
|
};
|
|
4131
4396
|
const purgeOperationSpec = {
|
|
4132
4397
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}",
|
|
@@ -4149,9 +4414,9 @@ const purgeOperationSpec = {
|
|
|
4149
4414
|
location
|
|
4150
4415
|
],
|
|
4151
4416
|
headerParameters: [accept],
|
|
4152
|
-
serializer: serializer$
|
|
4417
|
+
serializer: serializer$a
|
|
4153
4418
|
};
|
|
4154
|
-
const listOperationSpec$
|
|
4419
|
+
const listOperationSpec$9 = {
|
|
4155
4420
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/deletedAccounts",
|
|
4156
4421
|
httpMethod: "GET",
|
|
4157
4422
|
responses: {
|
|
@@ -4165,9 +4430,9 @@ const listOperationSpec$7 = {
|
|
|
4165
4430
|
queryParameters: [apiVersion],
|
|
4166
4431
|
urlParameters: [$host, subscriptionId],
|
|
4167
4432
|
headerParameters: [accept],
|
|
4168
|
-
serializer: serializer$
|
|
4433
|
+
serializer: serializer$a
|
|
4169
4434
|
};
|
|
4170
|
-
const listNextOperationSpec$
|
|
4435
|
+
const listNextOperationSpec$7 = {
|
|
4171
4436
|
path: "{nextLink}",
|
|
4172
4437
|
httpMethod: "GET",
|
|
4173
4438
|
responses: {
|
|
@@ -4184,7 +4449,7 @@ const listNextOperationSpec$5 = {
|
|
|
4184
4449
|
nextLink
|
|
4185
4450
|
],
|
|
4186
4451
|
headerParameters: [accept],
|
|
4187
|
-
serializer: serializer$
|
|
4452
|
+
serializer: serializer$a
|
|
4188
4453
|
};
|
|
4189
4454
|
|
|
4190
4455
|
/*
|
|
@@ -4275,7 +4540,7 @@ class ResourceSkusImpl {
|
|
|
4275
4540
|
* @param options The options parameters.
|
|
4276
4541
|
*/
|
|
4277
4542
|
_list(options) {
|
|
4278
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
4543
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$8);
|
|
4279
4544
|
}
|
|
4280
4545
|
/**
|
|
4281
4546
|
* ListNext
|
|
@@ -4283,12 +4548,12 @@ class ResourceSkusImpl {
|
|
|
4283
4548
|
* @param options The options parameters.
|
|
4284
4549
|
*/
|
|
4285
4550
|
_listNext(nextLink, options) {
|
|
4286
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
4551
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$6);
|
|
4287
4552
|
}
|
|
4288
4553
|
}
|
|
4289
4554
|
// Operation Specifications
|
|
4290
|
-
const serializer$
|
|
4291
|
-
const listOperationSpec$
|
|
4555
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4556
|
+
const listOperationSpec$8 = {
|
|
4292
4557
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",
|
|
4293
4558
|
httpMethod: "GET",
|
|
4294
4559
|
responses: {
|
|
@@ -4302,9 +4567,9 @@ const listOperationSpec$6 = {
|
|
|
4302
4567
|
queryParameters: [apiVersion],
|
|
4303
4568
|
urlParameters: [$host, subscriptionId],
|
|
4304
4569
|
headerParameters: [accept],
|
|
4305
|
-
serializer: serializer$
|
|
4570
|
+
serializer: serializer$9
|
|
4306
4571
|
};
|
|
4307
|
-
const listNextOperationSpec$
|
|
4572
|
+
const listNextOperationSpec$6 = {
|
|
4308
4573
|
path: "{nextLink}",
|
|
4309
4574
|
httpMethod: "GET",
|
|
4310
4575
|
responses: {
|
|
@@ -4321,7 +4586,7 @@ const listNextOperationSpec$4 = {
|
|
|
4321
4586
|
nextLink
|
|
4322
4587
|
],
|
|
4323
4588
|
headerParameters: [accept],
|
|
4324
|
-
serializer: serializer$
|
|
4589
|
+
serializer: serializer$9
|
|
4325
4590
|
};
|
|
4326
4591
|
|
|
4327
4592
|
/*
|
|
@@ -4332,21 +4597,22 @@ const listNextOperationSpec$4 = {
|
|
|
4332
4597
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4333
4598
|
*/
|
|
4334
4599
|
/// <reference lib="esnext.asynciterable" />
|
|
4335
|
-
/** Class containing
|
|
4336
|
-
class
|
|
4600
|
+
/** Class containing Usages operations. */
|
|
4601
|
+
class UsagesImpl {
|
|
4337
4602
|
/**
|
|
4338
|
-
* Initialize a new instance of the class
|
|
4603
|
+
* Initialize a new instance of the class Usages class.
|
|
4339
4604
|
* @param client Reference to the service client
|
|
4340
4605
|
*/
|
|
4341
4606
|
constructor(client) {
|
|
4342
4607
|
this.client = client;
|
|
4343
4608
|
}
|
|
4344
4609
|
/**
|
|
4345
|
-
*
|
|
4610
|
+
* Get usages for the requested subscription
|
|
4611
|
+
* @param location Resource location.
|
|
4346
4612
|
* @param options The options parameters.
|
|
4347
4613
|
*/
|
|
4348
|
-
list(options) {
|
|
4349
|
-
const iter = this.listPagingAll(options);
|
|
4614
|
+
list(location, options) {
|
|
4615
|
+
const iter = this.listPagingAll(location, options);
|
|
4350
4616
|
return {
|
|
4351
4617
|
next() {
|
|
4352
4618
|
return iter.next();
|
|
@@ -4358,23 +4624,23 @@ class OperationsImpl {
|
|
|
4358
4624
|
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4359
4625
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4360
4626
|
}
|
|
4361
|
-
return this.listPagingPage(options, settings);
|
|
4627
|
+
return this.listPagingPage(location, options, settings);
|
|
4362
4628
|
}
|
|
4363
4629
|
};
|
|
4364
4630
|
}
|
|
4365
|
-
listPagingPage(options, settings) {
|
|
4631
|
+
listPagingPage(location, options, settings) {
|
|
4366
4632
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4367
4633
|
let result;
|
|
4368
4634
|
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4369
4635
|
if (!continuationToken) {
|
|
4370
|
-
result = yield tslib.__await(this._list(options));
|
|
4636
|
+
result = yield tslib.__await(this._list(location, options));
|
|
4371
4637
|
let page = result.value || [];
|
|
4372
4638
|
continuationToken = result.nextLink;
|
|
4373
4639
|
setContinuationToken(page, continuationToken);
|
|
4374
4640
|
yield yield tslib.__await(page);
|
|
4375
4641
|
}
|
|
4376
4642
|
while (continuationToken) {
|
|
4377
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4643
|
+
result = yield tslib.__await(this._listNext(location, continuationToken, options));
|
|
4378
4644
|
continuationToken = result.nextLink;
|
|
4379
4645
|
let page = result.value || [];
|
|
4380
4646
|
setContinuationToken(page, continuationToken);
|
|
@@ -4382,11 +4648,11 @@ class OperationsImpl {
|
|
|
4382
4648
|
}
|
|
4383
4649
|
});
|
|
4384
4650
|
}
|
|
4385
|
-
listPagingAll(options) {
|
|
4651
|
+
listPagingAll(location, options) {
|
|
4386
4652
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4387
4653
|
var _a, e_1, _b, _c;
|
|
4388
4654
|
try {
|
|
4389
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
4655
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
4390
4656
|
_c = _f.value;
|
|
4391
4657
|
_d = false;
|
|
4392
4658
|
try {
|
|
@@ -4408,11 +4674,155 @@ class OperationsImpl {
|
|
|
4408
4674
|
});
|
|
4409
4675
|
}
|
|
4410
4676
|
/**
|
|
4411
|
-
*
|
|
4677
|
+
* Get usages for the requested subscription
|
|
4678
|
+
* @param location Resource location.
|
|
4412
4679
|
* @param options The options parameters.
|
|
4413
4680
|
*/
|
|
4414
|
-
_list(options) {
|
|
4415
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
4681
|
+
_list(location, options) {
|
|
4682
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec$7);
|
|
4683
|
+
}
|
|
4684
|
+
/**
|
|
4685
|
+
* ListNext
|
|
4686
|
+
* @param location Resource location.
|
|
4687
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4688
|
+
* @param options The options parameters.
|
|
4689
|
+
*/
|
|
4690
|
+
_listNext(location, nextLink, options) {
|
|
4691
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$5);
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
// Operation Specifications
|
|
4695
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4696
|
+
const listOperationSpec$7 = {
|
|
4697
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/usages",
|
|
4698
|
+
httpMethod: "GET",
|
|
4699
|
+
responses: {
|
|
4700
|
+
200: {
|
|
4701
|
+
bodyMapper: UsageListResult
|
|
4702
|
+
},
|
|
4703
|
+
default: {
|
|
4704
|
+
bodyMapper: ErrorResponse
|
|
4705
|
+
}
|
|
4706
|
+
},
|
|
4707
|
+
queryParameters: [apiVersion, filter],
|
|
4708
|
+
urlParameters: [
|
|
4709
|
+
$host,
|
|
4710
|
+
subscriptionId,
|
|
4711
|
+
location
|
|
4712
|
+
],
|
|
4713
|
+
headerParameters: [accept],
|
|
4714
|
+
serializer: serializer$8
|
|
4715
|
+
};
|
|
4716
|
+
const listNextOperationSpec$5 = {
|
|
4717
|
+
path: "{nextLink}",
|
|
4718
|
+
httpMethod: "GET",
|
|
4719
|
+
responses: {
|
|
4720
|
+
200: {
|
|
4721
|
+
bodyMapper: UsageListResult
|
|
4722
|
+
},
|
|
4723
|
+
default: {
|
|
4724
|
+
bodyMapper: ErrorResponse
|
|
4725
|
+
}
|
|
4726
|
+
},
|
|
4727
|
+
urlParameters: [
|
|
4728
|
+
$host,
|
|
4729
|
+
subscriptionId,
|
|
4730
|
+
nextLink,
|
|
4731
|
+
location
|
|
4732
|
+
],
|
|
4733
|
+
headerParameters: [accept],
|
|
4734
|
+
serializer: serializer$8
|
|
4735
|
+
};
|
|
4736
|
+
|
|
4737
|
+
/*
|
|
4738
|
+
* Copyright (c) Microsoft Corporation.
|
|
4739
|
+
* Licensed under the MIT License.
|
|
4740
|
+
*
|
|
4741
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4742
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4743
|
+
*/
|
|
4744
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4745
|
+
/** Class containing Operations operations. */
|
|
4746
|
+
class OperationsImpl {
|
|
4747
|
+
/**
|
|
4748
|
+
* Initialize a new instance of the class Operations class.
|
|
4749
|
+
* @param client Reference to the service client
|
|
4750
|
+
*/
|
|
4751
|
+
constructor(client) {
|
|
4752
|
+
this.client = client;
|
|
4753
|
+
}
|
|
4754
|
+
/**
|
|
4755
|
+
* Lists all the available Cognitive Services account operations.
|
|
4756
|
+
* @param options The options parameters.
|
|
4757
|
+
*/
|
|
4758
|
+
list(options) {
|
|
4759
|
+
const iter = this.listPagingAll(options);
|
|
4760
|
+
return {
|
|
4761
|
+
next() {
|
|
4762
|
+
return iter.next();
|
|
4763
|
+
},
|
|
4764
|
+
[Symbol.asyncIterator]() {
|
|
4765
|
+
return this;
|
|
4766
|
+
},
|
|
4767
|
+
byPage: (settings) => {
|
|
4768
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4769
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4770
|
+
}
|
|
4771
|
+
return this.listPagingPage(options, settings);
|
|
4772
|
+
}
|
|
4773
|
+
};
|
|
4774
|
+
}
|
|
4775
|
+
listPagingPage(options, settings) {
|
|
4776
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4777
|
+
let result;
|
|
4778
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4779
|
+
if (!continuationToken) {
|
|
4780
|
+
result = yield tslib.__await(this._list(options));
|
|
4781
|
+
let page = result.value || [];
|
|
4782
|
+
continuationToken = result.nextLink;
|
|
4783
|
+
setContinuationToken(page, continuationToken);
|
|
4784
|
+
yield yield tslib.__await(page);
|
|
4785
|
+
}
|
|
4786
|
+
while (continuationToken) {
|
|
4787
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4788
|
+
continuationToken = result.nextLink;
|
|
4789
|
+
let page = result.value || [];
|
|
4790
|
+
setContinuationToken(page, continuationToken);
|
|
4791
|
+
yield yield tslib.__await(page);
|
|
4792
|
+
}
|
|
4793
|
+
});
|
|
4794
|
+
}
|
|
4795
|
+
listPagingAll(options) {
|
|
4796
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4797
|
+
var _a, e_1, _b, _c;
|
|
4798
|
+
try {
|
|
4799
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
4800
|
+
_c = _f.value;
|
|
4801
|
+
_d = false;
|
|
4802
|
+
try {
|
|
4803
|
+
const page = _c;
|
|
4804
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4805
|
+
}
|
|
4806
|
+
finally {
|
|
4807
|
+
_d = true;
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
}
|
|
4811
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4812
|
+
finally {
|
|
4813
|
+
try {
|
|
4814
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4815
|
+
}
|
|
4816
|
+
finally { if (e_1) throw e_1.error; }
|
|
4817
|
+
}
|
|
4818
|
+
});
|
|
4819
|
+
}
|
|
4820
|
+
/**
|
|
4821
|
+
* Lists all the available Cognitive Services account operations.
|
|
4822
|
+
* @param options The options parameters.
|
|
4823
|
+
*/
|
|
4824
|
+
_list(options) {
|
|
4825
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$6);
|
|
4416
4826
|
}
|
|
4417
4827
|
/**
|
|
4418
4828
|
* ListNext
|
|
@@ -4420,12 +4830,12 @@ class OperationsImpl {
|
|
|
4420
4830
|
* @param options The options parameters.
|
|
4421
4831
|
*/
|
|
4422
4832
|
_listNext(nextLink, options) {
|
|
4423
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
4833
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
|
4424
4834
|
}
|
|
4425
4835
|
}
|
|
4426
4836
|
// Operation Specifications
|
|
4427
|
-
const serializer$
|
|
4428
|
-
const listOperationSpec$
|
|
4837
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4838
|
+
const listOperationSpec$6 = {
|
|
4429
4839
|
path: "/providers/Microsoft.CognitiveServices/operations",
|
|
4430
4840
|
httpMethod: "GET",
|
|
4431
4841
|
responses: {
|
|
@@ -4439,9 +4849,9 @@ const listOperationSpec$5 = {
|
|
|
4439
4849
|
queryParameters: [apiVersion],
|
|
4440
4850
|
urlParameters: [$host],
|
|
4441
4851
|
headerParameters: [accept],
|
|
4442
|
-
serializer: serializer$
|
|
4852
|
+
serializer: serializer$7
|
|
4443
4853
|
};
|
|
4444
|
-
const listNextOperationSpec$
|
|
4854
|
+
const listNextOperationSpec$4 = {
|
|
4445
4855
|
path: "{nextLink}",
|
|
4446
4856
|
httpMethod: "GET",
|
|
4447
4857
|
responses: {
|
|
@@ -4454,7 +4864,7 @@ const listNextOperationSpec$3 = {
|
|
|
4454
4864
|
},
|
|
4455
4865
|
urlParameters: [$host, nextLink],
|
|
4456
4866
|
headerParameters: [accept],
|
|
4457
|
-
serializer: serializer$
|
|
4867
|
+
serializer: serializer$7
|
|
4458
4868
|
};
|
|
4459
4869
|
|
|
4460
4870
|
/*
|
|
@@ -4546,6 +4956,151 @@ class CommitmentTiersImpl {
|
|
|
4546
4956
|
* @param location Resource location.
|
|
4547
4957
|
* @param options The options parameters.
|
|
4548
4958
|
*/
|
|
4959
|
+
_list(location, options) {
|
|
4960
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec$5);
|
|
4961
|
+
}
|
|
4962
|
+
/**
|
|
4963
|
+
* ListNext
|
|
4964
|
+
* @param location Resource location.
|
|
4965
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4966
|
+
* @param options The options parameters.
|
|
4967
|
+
*/
|
|
4968
|
+
_listNext(location, nextLink, options) {
|
|
4969
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$3);
|
|
4970
|
+
}
|
|
4971
|
+
}
|
|
4972
|
+
// Operation Specifications
|
|
4973
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4974
|
+
const listOperationSpec$5 = {
|
|
4975
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/commitmentTiers",
|
|
4976
|
+
httpMethod: "GET",
|
|
4977
|
+
responses: {
|
|
4978
|
+
200: {
|
|
4979
|
+
bodyMapper: CommitmentTierListResult
|
|
4980
|
+
},
|
|
4981
|
+
default: {
|
|
4982
|
+
bodyMapper: ErrorResponse
|
|
4983
|
+
}
|
|
4984
|
+
},
|
|
4985
|
+
queryParameters: [apiVersion],
|
|
4986
|
+
urlParameters: [
|
|
4987
|
+
$host,
|
|
4988
|
+
subscriptionId,
|
|
4989
|
+
location
|
|
4990
|
+
],
|
|
4991
|
+
headerParameters: [accept],
|
|
4992
|
+
serializer: serializer$6
|
|
4993
|
+
};
|
|
4994
|
+
const listNextOperationSpec$3 = {
|
|
4995
|
+
path: "{nextLink}",
|
|
4996
|
+
httpMethod: "GET",
|
|
4997
|
+
responses: {
|
|
4998
|
+
200: {
|
|
4999
|
+
bodyMapper: CommitmentTierListResult
|
|
5000
|
+
},
|
|
5001
|
+
default: {
|
|
5002
|
+
bodyMapper: ErrorResponse
|
|
5003
|
+
}
|
|
5004
|
+
},
|
|
5005
|
+
urlParameters: [
|
|
5006
|
+
$host,
|
|
5007
|
+
subscriptionId,
|
|
5008
|
+
nextLink,
|
|
5009
|
+
location
|
|
5010
|
+
],
|
|
5011
|
+
headerParameters: [accept],
|
|
5012
|
+
serializer: serializer$6
|
|
5013
|
+
};
|
|
5014
|
+
|
|
5015
|
+
/*
|
|
5016
|
+
* Copyright (c) Microsoft Corporation.
|
|
5017
|
+
* Licensed under the MIT License.
|
|
5018
|
+
*
|
|
5019
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
5020
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5021
|
+
*/
|
|
5022
|
+
/// <reference lib="esnext.asynciterable" />
|
|
5023
|
+
/** Class containing Models operations. */
|
|
5024
|
+
class ModelsImpl {
|
|
5025
|
+
/**
|
|
5026
|
+
* Initialize a new instance of the class Models class.
|
|
5027
|
+
* @param client Reference to the service client
|
|
5028
|
+
*/
|
|
5029
|
+
constructor(client) {
|
|
5030
|
+
this.client = client;
|
|
5031
|
+
}
|
|
5032
|
+
/**
|
|
5033
|
+
* List Models.
|
|
5034
|
+
* @param location Resource location.
|
|
5035
|
+
* @param options The options parameters.
|
|
5036
|
+
*/
|
|
5037
|
+
list(location, options) {
|
|
5038
|
+
const iter = this.listPagingAll(location, options);
|
|
5039
|
+
return {
|
|
5040
|
+
next() {
|
|
5041
|
+
return iter.next();
|
|
5042
|
+
},
|
|
5043
|
+
[Symbol.asyncIterator]() {
|
|
5044
|
+
return this;
|
|
5045
|
+
},
|
|
5046
|
+
byPage: (settings) => {
|
|
5047
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5048
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5049
|
+
}
|
|
5050
|
+
return this.listPagingPage(location, options, settings);
|
|
5051
|
+
}
|
|
5052
|
+
};
|
|
5053
|
+
}
|
|
5054
|
+
listPagingPage(location, options, settings) {
|
|
5055
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5056
|
+
let result;
|
|
5057
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5058
|
+
if (!continuationToken) {
|
|
5059
|
+
result = yield tslib.__await(this._list(location, options));
|
|
5060
|
+
let page = result.value || [];
|
|
5061
|
+
continuationToken = result.nextLink;
|
|
5062
|
+
setContinuationToken(page, continuationToken);
|
|
5063
|
+
yield yield tslib.__await(page);
|
|
5064
|
+
}
|
|
5065
|
+
while (continuationToken) {
|
|
5066
|
+
result = yield tslib.__await(this._listNext(location, continuationToken, options));
|
|
5067
|
+
continuationToken = result.nextLink;
|
|
5068
|
+
let page = result.value || [];
|
|
5069
|
+
setContinuationToken(page, continuationToken);
|
|
5070
|
+
yield yield tslib.__await(page);
|
|
5071
|
+
}
|
|
5072
|
+
});
|
|
5073
|
+
}
|
|
5074
|
+
listPagingAll(location, options) {
|
|
5075
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
5076
|
+
var _a, e_1, _b, _c;
|
|
5077
|
+
try {
|
|
5078
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
5079
|
+
_c = _f.value;
|
|
5080
|
+
_d = false;
|
|
5081
|
+
try {
|
|
5082
|
+
const page = _c;
|
|
5083
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5084
|
+
}
|
|
5085
|
+
finally {
|
|
5086
|
+
_d = true;
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5091
|
+
finally {
|
|
5092
|
+
try {
|
|
5093
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
5094
|
+
}
|
|
5095
|
+
finally { if (e_1) throw e_1.error; }
|
|
5096
|
+
}
|
|
5097
|
+
});
|
|
5098
|
+
}
|
|
5099
|
+
/**
|
|
5100
|
+
* List Models.
|
|
5101
|
+
* @param location Resource location.
|
|
5102
|
+
* @param options The options parameters.
|
|
5103
|
+
*/
|
|
4549
5104
|
_list(location, options) {
|
|
4550
5105
|
return this.client.sendOperationRequest({ location, options }, listOperationSpec$4);
|
|
4551
5106
|
}
|
|
@@ -4562,11 +5117,11 @@ class CommitmentTiersImpl {
|
|
|
4562
5117
|
// Operation Specifications
|
|
4563
5118
|
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4564
5119
|
const listOperationSpec$4 = {
|
|
4565
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/
|
|
5120
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/models",
|
|
4566
5121
|
httpMethod: "GET",
|
|
4567
5122
|
responses: {
|
|
4568
5123
|
200: {
|
|
4569
|
-
bodyMapper:
|
|
5124
|
+
bodyMapper: ModelListResult
|
|
4570
5125
|
},
|
|
4571
5126
|
default: {
|
|
4572
5127
|
bodyMapper: ErrorResponse
|
|
@@ -4586,7 +5141,7 @@ const listNextOperationSpec$2 = {
|
|
|
4586
5141
|
httpMethod: "GET",
|
|
4587
5142
|
responses: {
|
|
4588
5143
|
200: {
|
|
4589
|
-
bodyMapper:
|
|
5144
|
+
bodyMapper: ModelListResult
|
|
4590
5145
|
},
|
|
4591
5146
|
default: {
|
|
4592
5147
|
bodyMapper: ErrorResponse
|
|
@@ -4658,7 +5213,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4658
5213
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4659
5214
|
return this.client.sendOperationRequest(args, spec);
|
|
4660
5215
|
});
|
|
4661
|
-
const
|
|
5216
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4662
5217
|
var _a;
|
|
4663
5218
|
let currentRawResponse = undefined;
|
|
4664
5219
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4677,15 +5232,19 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4677
5232
|
}
|
|
4678
5233
|
};
|
|
4679
5234
|
});
|
|
4680
|
-
const lro =
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
5235
|
+
const lro = createLroSpec({
|
|
5236
|
+
sendOperationFn,
|
|
5237
|
+
args: {
|
|
5238
|
+
resourceGroupName,
|
|
5239
|
+
accountName,
|
|
5240
|
+
privateEndpointConnectionName,
|
|
5241
|
+
properties,
|
|
5242
|
+
options
|
|
5243
|
+
},
|
|
5244
|
+
spec: createOrUpdateOperationSpec$2
|
|
5245
|
+
});
|
|
5246
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5247
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4689
5248
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4690
5249
|
});
|
|
4691
5250
|
yield poller.poll();
|
|
@@ -4721,7 +5280,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4721
5280
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4722
5281
|
return this.client.sendOperationRequest(args, spec);
|
|
4723
5282
|
});
|
|
4724
|
-
const
|
|
5283
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4725
5284
|
var _a;
|
|
4726
5285
|
let currentRawResponse = undefined;
|
|
4727
5286
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4740,14 +5299,18 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4740
5299
|
}
|
|
4741
5300
|
};
|
|
4742
5301
|
});
|
|
4743
|
-
const lro =
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
5302
|
+
const lro = createLroSpec({
|
|
5303
|
+
sendOperationFn,
|
|
5304
|
+
args: {
|
|
5305
|
+
resourceGroupName,
|
|
5306
|
+
accountName,
|
|
5307
|
+
privateEndpointConnectionName,
|
|
5308
|
+
options
|
|
5309
|
+
},
|
|
5310
|
+
spec: deleteOperationSpec$2
|
|
5311
|
+
});
|
|
5312
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5313
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4751
5314
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4752
5315
|
});
|
|
4753
5316
|
yield poller.poll();
|
|
@@ -5038,7 +5601,7 @@ class DeploymentsImpl {
|
|
|
5038
5601
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5039
5602
|
return this.client.sendOperationRequest(args, spec);
|
|
5040
5603
|
});
|
|
5041
|
-
const
|
|
5604
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5042
5605
|
var _a;
|
|
5043
5606
|
let currentRawResponse = undefined;
|
|
5044
5607
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5057,10 +5620,21 @@ class DeploymentsImpl {
|
|
|
5057
5620
|
}
|
|
5058
5621
|
};
|
|
5059
5622
|
});
|
|
5060
|
-
const lro =
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5623
|
+
const lro = createLroSpec({
|
|
5624
|
+
sendOperationFn,
|
|
5625
|
+
args: {
|
|
5626
|
+
resourceGroupName,
|
|
5627
|
+
accountName,
|
|
5628
|
+
deploymentName,
|
|
5629
|
+
deployment,
|
|
5630
|
+
options
|
|
5631
|
+
},
|
|
5632
|
+
spec: createOrUpdateOperationSpec$1
|
|
5633
|
+
});
|
|
5634
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5635
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5636
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5637
|
+
resourceLocationConfig: "azure-async-operation"
|
|
5064
5638
|
});
|
|
5065
5639
|
yield poller.poll();
|
|
5066
5640
|
return poller;
|
|
@@ -5092,7 +5666,7 @@ class DeploymentsImpl {
|
|
|
5092
5666
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5093
5667
|
return this.client.sendOperationRequest(args, spec);
|
|
5094
5668
|
});
|
|
5095
|
-
const
|
|
5669
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5096
5670
|
var _a;
|
|
5097
5671
|
let currentRawResponse = undefined;
|
|
5098
5672
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5111,9 +5685,13 @@ class DeploymentsImpl {
|
|
|
5111
5685
|
}
|
|
5112
5686
|
};
|
|
5113
5687
|
});
|
|
5114
|
-
const lro =
|
|
5115
|
-
|
|
5116
|
-
|
|
5688
|
+
const lro = createLroSpec({
|
|
5689
|
+
sendOperationFn,
|
|
5690
|
+
args: { resourceGroupName, accountName, deploymentName, options },
|
|
5691
|
+
spec: deleteOperationSpec$1
|
|
5692
|
+
});
|
|
5693
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5694
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5117
5695
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5118
5696
|
});
|
|
5119
5697
|
yield poller.poll();
|
|
@@ -5605,7 +6183,7 @@ class CommitmentPlansImpl {
|
|
|
5605
6183
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5606
6184
|
return this.client.sendOperationRequest(args, spec);
|
|
5607
6185
|
});
|
|
5608
|
-
const
|
|
6186
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5609
6187
|
var _a;
|
|
5610
6188
|
let currentRawResponse = undefined;
|
|
5611
6189
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5624,9 +6202,13 @@ class CommitmentPlansImpl {
|
|
|
5624
6202
|
}
|
|
5625
6203
|
};
|
|
5626
6204
|
});
|
|
5627
|
-
const lro =
|
|
5628
|
-
|
|
5629
|
-
|
|
6205
|
+
const lro = createLroSpec({
|
|
6206
|
+
sendOperationFn,
|
|
6207
|
+
args: { resourceGroupName, accountName, commitmentPlanName, options },
|
|
6208
|
+
spec: deleteOperationSpec
|
|
6209
|
+
});
|
|
6210
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6211
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5630
6212
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5631
6213
|
});
|
|
5632
6214
|
yield poller.poll();
|
|
@@ -5660,7 +6242,7 @@ class CommitmentPlansImpl {
|
|
|
5660
6242
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5661
6243
|
return this.client.sendOperationRequest(args, spec);
|
|
5662
6244
|
});
|
|
5663
|
-
const
|
|
6245
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5664
6246
|
var _a;
|
|
5665
6247
|
let currentRawResponse = undefined;
|
|
5666
6248
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5679,11 +6261,15 @@ class CommitmentPlansImpl {
|
|
|
5679
6261
|
}
|
|
5680
6262
|
};
|
|
5681
6263
|
});
|
|
5682
|
-
const lro =
|
|
5683
|
-
|
|
5684
|
-
|
|
6264
|
+
const lro = createLroSpec({
|
|
6265
|
+
sendOperationFn,
|
|
6266
|
+
args: { resourceGroupName, commitmentPlanName, commitmentPlan, options },
|
|
6267
|
+
spec: createOrUpdatePlanOperationSpec
|
|
6268
|
+
});
|
|
6269
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6270
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5685
6271
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5686
|
-
|
|
6272
|
+
resourceLocationConfig: "azure-async-operation"
|
|
5687
6273
|
});
|
|
5688
6274
|
yield poller.poll();
|
|
5689
6275
|
return poller;
|
|
@@ -5716,7 +6302,7 @@ class CommitmentPlansImpl {
|
|
|
5716
6302
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5717
6303
|
return this.client.sendOperationRequest(args, spec);
|
|
5718
6304
|
});
|
|
5719
|
-
const
|
|
6305
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5720
6306
|
var _a;
|
|
5721
6307
|
let currentRawResponse = undefined;
|
|
5722
6308
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5735,11 +6321,15 @@ class CommitmentPlansImpl {
|
|
|
5735
6321
|
}
|
|
5736
6322
|
};
|
|
5737
6323
|
});
|
|
5738
|
-
const lro =
|
|
5739
|
-
|
|
5740
|
-
|
|
6324
|
+
const lro = createLroSpec({
|
|
6325
|
+
sendOperationFn,
|
|
6326
|
+
args: { resourceGroupName, commitmentPlanName, commitmentPlan, options },
|
|
6327
|
+
spec: updatePlanOperationSpec
|
|
6328
|
+
});
|
|
6329
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6330
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5741
6331
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5742
|
-
|
|
6332
|
+
resourceLocationConfig: "location"
|
|
5743
6333
|
});
|
|
5744
6334
|
yield poller.poll();
|
|
5745
6335
|
return poller;
|
|
@@ -5771,7 +6361,7 @@ class CommitmentPlansImpl {
|
|
|
5771
6361
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5772
6362
|
return this.client.sendOperationRequest(args, spec);
|
|
5773
6363
|
});
|
|
5774
|
-
const
|
|
6364
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5775
6365
|
var _a;
|
|
5776
6366
|
let currentRawResponse = undefined;
|
|
5777
6367
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5790,11 +6380,15 @@ class CommitmentPlansImpl {
|
|
|
5790
6380
|
}
|
|
5791
6381
|
};
|
|
5792
6382
|
});
|
|
5793
|
-
const lro =
|
|
5794
|
-
|
|
5795
|
-
|
|
6383
|
+
const lro = createLroSpec({
|
|
6384
|
+
sendOperationFn,
|
|
6385
|
+
args: { resourceGroupName, commitmentPlanName, options },
|
|
6386
|
+
spec: deletePlanOperationSpec
|
|
6387
|
+
});
|
|
6388
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6389
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5796
6390
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5797
|
-
|
|
6391
|
+
resourceLocationConfig: "location"
|
|
5798
6392
|
});
|
|
5799
6393
|
yield poller.poll();
|
|
5800
6394
|
return poller;
|
|
@@ -5880,7 +6474,7 @@ class CommitmentPlansImpl {
|
|
|
5880
6474
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5881
6475
|
return this.client.sendOperationRequest(args, spec);
|
|
5882
6476
|
});
|
|
5883
|
-
const
|
|
6477
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5884
6478
|
var _a;
|
|
5885
6479
|
let currentRawResponse = undefined;
|
|
5886
6480
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5899,17 +6493,21 @@ class CommitmentPlansImpl {
|
|
|
5899
6493
|
}
|
|
5900
6494
|
};
|
|
5901
6495
|
});
|
|
5902
|
-
const lro =
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
6496
|
+
const lro = createLroSpec({
|
|
6497
|
+
sendOperationFn,
|
|
6498
|
+
args: {
|
|
6499
|
+
resourceGroupName,
|
|
6500
|
+
commitmentPlanName,
|
|
6501
|
+
commitmentPlanAssociationName,
|
|
6502
|
+
association,
|
|
6503
|
+
options
|
|
6504
|
+
},
|
|
6505
|
+
spec: createOrUpdateAssociationOperationSpec
|
|
6506
|
+
});
|
|
6507
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6508
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5911
6509
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5912
|
-
|
|
6510
|
+
resourceLocationConfig: "azure-async-operation"
|
|
5913
6511
|
});
|
|
5914
6512
|
yield poller.poll();
|
|
5915
6513
|
return poller;
|
|
@@ -5945,7 +6543,7 @@ class CommitmentPlansImpl {
|
|
|
5945
6543
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5946
6544
|
return this.client.sendOperationRequest(args, spec);
|
|
5947
6545
|
});
|
|
5948
|
-
const
|
|
6546
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5949
6547
|
var _a;
|
|
5950
6548
|
let currentRawResponse = undefined;
|
|
5951
6549
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5964,16 +6562,20 @@ class CommitmentPlansImpl {
|
|
|
5964
6562
|
}
|
|
5965
6563
|
};
|
|
5966
6564
|
});
|
|
5967
|
-
const lro =
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
6565
|
+
const lro = createLroSpec({
|
|
6566
|
+
sendOperationFn,
|
|
6567
|
+
args: {
|
|
6568
|
+
resourceGroupName,
|
|
6569
|
+
commitmentPlanName,
|
|
6570
|
+
commitmentPlanAssociationName,
|
|
6571
|
+
options
|
|
6572
|
+
},
|
|
6573
|
+
spec: deleteAssociationOperationSpec
|
|
6574
|
+
});
|
|
6575
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6576
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5975
6577
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5976
|
-
|
|
6578
|
+
resourceLocationConfig: "location"
|
|
5977
6579
|
});
|
|
5978
6580
|
yield poller.poll();
|
|
5979
6581
|
return poller;
|
|
@@ -6484,7 +7086,7 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
6484
7086
|
requestContentType: "application/json; charset=utf-8",
|
|
6485
7087
|
credential: credentials
|
|
6486
7088
|
};
|
|
6487
|
-
const packageDetails = `azsdk-js-arm-cognitiveservices/7.
|
|
7089
|
+
const packageDetails = `azsdk-js-arm-cognitiveservices/7.5.0`;
|
|
6488
7090
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
6489
7091
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
6490
7092
|
: `${packageDetails}`;
|
|
@@ -6517,12 +7119,14 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
6517
7119
|
this.subscriptionId = subscriptionId;
|
|
6518
7120
|
// Assigning values to Constant parameters
|
|
6519
7121
|
this.$host = options.$host || "https://management.azure.com";
|
|
6520
|
-
this.apiVersion = options.apiVersion || "
|
|
7122
|
+
this.apiVersion = options.apiVersion || "2023-05-01";
|
|
6521
7123
|
this.accounts = new AccountsImpl(this);
|
|
6522
7124
|
this.deletedAccounts = new DeletedAccountsImpl(this);
|
|
6523
7125
|
this.resourceSkus = new ResourceSkusImpl(this);
|
|
7126
|
+
this.usages = new UsagesImpl(this);
|
|
6524
7127
|
this.operations = new OperationsImpl(this);
|
|
6525
7128
|
this.commitmentTiers = new CommitmentTiersImpl(this);
|
|
7129
|
+
this.models = new ModelsImpl(this);
|
|
6526
7130
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
6527
7131
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
6528
7132
|
this.deployments = new DeploymentsImpl(this);
|