@azure/arm-cognitiveservices 7.2.1-alpha.20221003.1 → 7.3.0-alpha.20221102.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 (58) hide show
  1. package/CHANGELOG.md +17 -5
  2. package/dist/index.js +109 -16
  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/accountsCreateSample.js +2 -2
  7. package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/accountsGetSample.js +1 -1
  9. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
  10. package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
  11. package/dist-esm/samples-dev/accountsListModelsSample.js +1 -1
  12. package/dist-esm/samples-dev/accountsListSample.js +1 -1
  13. package/dist-esm/samples-dev/accountsListSkusSample.js +1 -1
  14. package/dist-esm/samples-dev/accountsListUsagesSample.js +1 -1
  15. package/dist-esm/samples-dev/accountsRegenerateKeySample.js +1 -1
  16. package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
  17. package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +1 -1
  18. package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +1 -1
  19. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +1 -1
  20. package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +1 -1
  21. package/dist-esm/samples-dev/commitmentPlansGetSample.js +1 -1
  22. package/dist-esm/samples-dev/commitmentPlansListSample.js +1 -1
  23. package/dist-esm/samples-dev/commitmentTiersListSample.js +1 -1
  24. package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
  26. package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +1 -1
  27. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
  30. package/dist-esm/samples-dev/deploymentsListSample.js +1 -1
  31. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  32. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  33. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  36. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
  37. package/dist-esm/samples-dev/resourceSkusListSample.js +1 -1
  38. package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
  39. package/dist-esm/src/cognitiveServicesManagementClient.js +23 -15
  40. package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
  41. package/dist-esm/src/models/index.d.ts +92 -15
  42. package/dist-esm/src/models/index.d.ts.map +1 -1
  43. package/dist-esm/src/models/index.js +57 -0
  44. package/dist-esm/src/models/index.js.map +1 -1
  45. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  46. package/dist-esm/src/models/mappers.js +28 -0
  47. package/dist-esm/src/models/mappers.js.map +1 -1
  48. package/dist-esm/src/models/parameters.js +1 -1
  49. package/dist-esm/test/cognitiveservices_examples.js +1 -1
  50. package/dist-esm/test/cognitiveservices_examples.js.map +1 -1
  51. package/package.json +6 -6
  52. package/review/arm-cognitiveservices.api.md +29 -79
  53. package/src/cognitiveServicesManagementClient.ts +28 -18
  54. package/src/models/index.ts +89 -15
  55. package/src/models/mappers.ts +28 -0
  56. package/src/models/parameters.ts +1 -1
  57. package/types/arm-cognitiveservices.d.ts +92 -15
  58. package/types/tsdoc-metadata.json +1 -1
@@ -5,7 +5,7 @@ import { PollerLike } from '@azure/core-lro';
5
5
  import { PollOperationState } from '@azure/core-lro';
6
6
 
7
7
  /** Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU. */
8
- export declare type Account = AzureEntityResource & {
8
+ export declare interface Account extends AzureEntityResource {
9
9
  /** The Kind of the resource. */
10
10
  kind?: string;
11
11
  /** The resource model definition representing SKU */
@@ -25,7 +25,7 @@ export declare type Account = AzureEntityResource & {
25
25
  location?: string;
26
26
  /** Properties of Cognitive Services account. */
27
27
  properties?: AccountProperties;
28
- };
28
+ }
29
29
 
30
30
  /** The list of cognitive services accounts operation response. */
31
31
  export declare interface AccountListResult {
@@ -39,7 +39,7 @@ export declare interface AccountListResult {
39
39
  }
40
40
 
41
41
  /** Cognitive Services account Model. */
42
- export declare type AccountModel = DeploymentModel & {
42
+ export declare interface AccountModel extends DeploymentModel {
43
43
  /** Base Model Identifier. */
44
44
  baseModel?: DeploymentModel;
45
45
  /** The max capacity. */
@@ -55,7 +55,7 @@ export declare type AccountModel = DeploymentModel & {
55
55
  * NOTE: This property will not be serialized. It can only be populated by the server.
56
56
  */
57
57
  readonly systemData?: SystemData;
58
- };
58
+ }
59
59
 
60
60
  /** The list of cognitive services accounts operation response. */
61
61
  export declare interface AccountModelListResult {
@@ -426,13 +426,13 @@ export declare interface ApiProperties {
426
426
  }
427
427
 
428
428
  /** The resource model definition for an Azure Resource Manager resource with an etag. */
429
- export declare type AzureEntityResource = Resource & {
429
+ export declare interface AzureEntityResource extends Resource {
430
430
  /**
431
431
  * Resource Etag.
432
432
  * NOTE: This property will not be serialized. It can only be populated by the server.
433
433
  */
434
434
  readonly etag?: string;
435
- };
435
+ }
436
436
 
437
437
  /** The call rate limit Cognitive Services account. */
438
438
  export declare interface CallRateLimit {
@@ -561,7 +561,7 @@ export declare interface CommitmentPeriod {
561
561
  }
562
562
 
563
563
  /** Cognitive Services account commitment plan. */
564
- export declare type CommitmentPlan = ProxyResource & {
564
+ export declare interface CommitmentPlan extends ProxyResource {
565
565
  /**
566
566
  * Metadata pertaining to creation and last modification of the resource.
567
567
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -574,7 +574,7 @@ export declare type CommitmentPlan = ProxyResource & {
574
574
  readonly etag?: string;
575
575
  /** Properties of Cognitive Services account commitment plan. */
576
576
  properties?: CommitmentPlanProperties;
577
- };
577
+ }
578
578
 
579
579
  /** The list of cognitive services accounts operation response. */
580
580
  export declare interface CommitmentPlanListResult {
@@ -828,7 +828,7 @@ export declare interface DeletedAccountsPurgeOptionalParams extends coreClient.O
828
828
  }
829
829
 
830
830
  /** Cognitive Services account deployment. */
831
- export declare type Deployment = ProxyResource & {
831
+ export declare interface Deployment extends ProxyResource {
832
832
  /**
833
833
  * Metadata pertaining to creation and last modification of the resource.
834
834
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -841,7 +841,7 @@ export declare type Deployment = ProxyResource & {
841
841
  readonly etag?: string;
842
842
  /** Properties of Cognitive Services account deployment. */
843
843
  properties?: DeploymentProperties;
844
- };
844
+ }
845
845
 
846
846
  /** The list of cognitive services accounts operation response. */
847
847
  export declare interface DeploymentListResult {
@@ -862,6 +862,11 @@ export declare interface DeploymentModel {
862
862
  name?: string;
863
863
  /** Deployment model version. */
864
864
  version?: string;
865
+ /**
866
+ * The call rate limit Cognitive Services account.
867
+ * NOTE: This property will not be serialized. It can only be populated by the server.
868
+ */
869
+ readonly callRateLimit?: CallRateLimit;
865
870
  }
866
871
 
867
872
  /** Properties of Cognitive Services account deployment. */
@@ -875,6 +880,20 @@ export declare interface DeploymentProperties {
875
880
  model?: DeploymentModel;
876
881
  /** Properties of Cognitive Services account deployment model. */
877
882
  scaleSettings?: DeploymentScaleSettings;
883
+ /**
884
+ * The capabilities.
885
+ * NOTE: This property will not be serialized. It can only be populated by the server.
886
+ */
887
+ readonly capabilities?: {
888
+ [propertyName: string]: string;
889
+ };
890
+ /** The name of RAI policy. */
891
+ raiPolicyName?: string;
892
+ /**
893
+ * The call rate limit Cognitive Services account.
894
+ * NOTE: This property will not be serialized. It can only be populated by the server.
895
+ */
896
+ readonly callRateLimit?: CallRateLimit;
878
897
  }
879
898
 
880
899
  /**
@@ -1141,122 +1160,179 @@ export declare interface KeyVaultProperties {
1141
1160
 
1142
1161
  /** Known values of {@link ActionType} that the service accepts. */
1143
1162
  export declare enum KnownActionType {
1163
+ /** Internal */
1144
1164
  Internal = "Internal"
1145
1165
  }
1146
1166
 
1147
1167
  /** Known values of {@link CreatedByType} that the service accepts. */
1148
1168
  export declare enum KnownCreatedByType {
1169
+ /** User */
1149
1170
  User = "User",
1171
+ /** Application */
1150
1172
  Application = "Application",
1173
+ /** ManagedIdentity */
1151
1174
  ManagedIdentity = "ManagedIdentity",
1175
+ /** Key */
1152
1176
  Key = "Key"
1153
1177
  }
1154
1178
 
1155
1179
  /** Known values of {@link DeploymentProvisioningState} that the service accepts. */
1156
1180
  export declare enum KnownDeploymentProvisioningState {
1181
+ /** Accepted */
1157
1182
  Accepted = "Accepted",
1183
+ /** Creating */
1158
1184
  Creating = "Creating",
1185
+ /** Deleting */
1159
1186
  Deleting = "Deleting",
1187
+ /** Moving */
1160
1188
  Moving = "Moving",
1189
+ /** Failed */
1161
1190
  Failed = "Failed",
1191
+ /** Succeeded */
1162
1192
  Succeeded = "Succeeded"
1163
1193
  }
1164
1194
 
1165
1195
  /** Known values of {@link DeploymentScaleType} that the service accepts. */
1166
1196
  export declare enum KnownDeploymentScaleType {
1197
+ /** Standard */
1167
1198
  Standard = "Standard",
1199
+ /** Manual */
1168
1200
  Manual = "Manual"
1169
1201
  }
1170
1202
 
1171
1203
  /** Known values of {@link HostingModel} that the service accepts. */
1172
1204
  export declare enum KnownHostingModel {
1205
+ /** Web */
1173
1206
  Web = "Web",
1207
+ /** ConnectedContainer */
1174
1208
  ConnectedContainer = "ConnectedContainer",
1209
+ /** DisconnectedContainer */
1175
1210
  DisconnectedContainer = "DisconnectedContainer"
1176
1211
  }
1177
1212
 
1178
1213
  /** Known values of {@link KeySource} that the service accepts. */
1179
1214
  export declare enum KnownKeySource {
1215
+ /** MicrosoftCognitiveServices */
1180
1216
  MicrosoftCognitiveServices = "Microsoft.CognitiveServices",
1217
+ /** MicrosoftKeyVault */
1181
1218
  MicrosoftKeyVault = "Microsoft.KeyVault"
1182
1219
  }
1183
1220
 
1184
1221
  /** Known values of {@link NetworkRuleAction} that the service accepts. */
1185
1222
  export declare enum KnownNetworkRuleAction {
1223
+ /** Allow */
1186
1224
  Allow = "Allow",
1225
+ /** Deny */
1187
1226
  Deny = "Deny"
1188
1227
  }
1189
1228
 
1190
1229
  /** Known values of {@link Origin} that the service accepts. */
1191
1230
  export declare enum KnownOrigin {
1231
+ /** User */
1192
1232
  User = "user",
1233
+ /** System */
1193
1234
  System = "system",
1235
+ /** UserSystem */
1194
1236
  UserSystem = "user,system"
1195
1237
  }
1196
1238
 
1197
1239
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1198
1240
  export declare enum KnownPrivateEndpointConnectionProvisioningState {
1241
+ /** Succeeded */
1199
1242
  Succeeded = "Succeeded",
1243
+ /** Creating */
1200
1244
  Creating = "Creating",
1245
+ /** Deleting */
1201
1246
  Deleting = "Deleting",
1247
+ /** Failed */
1202
1248
  Failed = "Failed"
1203
1249
  }
1204
1250
 
1205
1251
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1206
1252
  export declare enum KnownPrivateEndpointServiceConnectionStatus {
1253
+ /** Pending */
1207
1254
  Pending = "Pending",
1255
+ /** Approved */
1208
1256
  Approved = "Approved",
1257
+ /** Rejected */
1209
1258
  Rejected = "Rejected"
1210
1259
  }
1211
1260
 
1212
1261
  /** Known values of {@link ProvisioningState} that the service accepts. */
1213
1262
  export declare enum KnownProvisioningState {
1263
+ /** Accepted */
1214
1264
  Accepted = "Accepted",
1265
+ /** Creating */
1215
1266
  Creating = "Creating",
1267
+ /** Deleting */
1216
1268
  Deleting = "Deleting",
1269
+ /** Moving */
1217
1270
  Moving = "Moving",
1271
+ /** Failed */
1218
1272
  Failed = "Failed",
1273
+ /** Succeeded */
1219
1274
  Succeeded = "Succeeded",
1275
+ /** ResolvingDNS */
1220
1276
  ResolvingDNS = "ResolvingDNS"
1221
1277
  }
1222
1278
 
1223
1279
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
1224
1280
  export declare enum KnownPublicNetworkAccess {
1281
+ /** Enabled */
1225
1282
  Enabled = "Enabled",
1283
+ /** Disabled */
1226
1284
  Disabled = "Disabled"
1227
1285
  }
1228
1286
 
1229
1287
  /** Known values of {@link QuotaUsageStatus} that the service accepts. */
1230
1288
  export declare enum KnownQuotaUsageStatus {
1289
+ /** Included */
1231
1290
  Included = "Included",
1291
+ /** Blocked */
1232
1292
  Blocked = "Blocked",
1293
+ /** InOverage */
1233
1294
  InOverage = "InOverage",
1295
+ /** Unknown */
1234
1296
  Unknown = "Unknown"
1235
1297
  }
1236
1298
 
1237
1299
  /** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
1238
1300
  export declare enum KnownResourceSkuRestrictionsReasonCode {
1301
+ /** QuotaId */
1239
1302
  QuotaId = "QuotaId",
1303
+ /** NotAvailableForSubscription */
1240
1304
  NotAvailableForSubscription = "NotAvailableForSubscription"
1241
1305
  }
1242
1306
 
1243
1307
  /** Known values of {@link SkuTier} that the service accepts. */
1244
1308
  export declare enum KnownSkuTier {
1309
+ /** Free */
1245
1310
  Free = "Free",
1311
+ /** Basic */
1246
1312
  Basic = "Basic",
1313
+ /** Standard */
1247
1314
  Standard = "Standard",
1315
+ /** Premium */
1248
1316
  Premium = "Premium",
1317
+ /** Enterprise */
1249
1318
  Enterprise = "Enterprise"
1250
1319
  }
1251
1320
 
1252
1321
  /** Known values of {@link UnitType} that the service accepts. */
1253
1322
  export declare enum KnownUnitType {
1323
+ /** Count */
1254
1324
  Count = "Count",
1325
+ /** Bytes */
1255
1326
  Bytes = "Bytes",
1327
+ /** Seconds */
1256
1328
  Seconds = "Seconds",
1329
+ /** Percent */
1257
1330
  Percent = "Percent",
1331
+ /** CountPerSecond */
1258
1332
  CountPerSecond = "CountPerSecond",
1333
+ /** BytesPerSecond */
1259
1334
  BytesPerSecond = "BytesPerSecond",
1335
+ /** Milliseconds */
1260
1336
  Milliseconds = "Milliseconds"
1261
1337
  }
1262
1338
 
@@ -1404,7 +1480,7 @@ export declare interface PrivateEndpoint {
1404
1480
  }
1405
1481
 
1406
1482
  /** The Private Endpoint Connection resource. */
1407
- export declare type PrivateEndpointConnection = AzureEntityResource & {
1483
+ export declare interface PrivateEndpointConnection extends AzureEntityResource {
1408
1484
  /** Resource properties. */
1409
1485
  properties?: PrivateEndpointConnectionProperties;
1410
1486
  /**
@@ -1414,7 +1490,7 @@ export declare type PrivateEndpointConnection = AzureEntityResource & {
1414
1490
  readonly systemData?: SystemData;
1415
1491
  /** The location of the private endpoint connection */
1416
1492
  location?: string;
1417
- };
1493
+ }
1418
1494
 
1419
1495
  /** A list of private endpoint connections */
1420
1496
  export declare interface PrivateEndpointConnectionListResult {
@@ -1554,10 +1630,10 @@ export declare type PrivateEndpointConnectionsListResponse = PrivateEndpointConn
1554
1630
  export declare type PrivateEndpointServiceConnectionStatus = string;
1555
1631
 
1556
1632
  /** A private link resource */
1557
- export declare type PrivateLinkResource = Resource & {
1633
+ export declare interface PrivateLinkResource extends Resource {
1558
1634
  /** Resource properties. */
1559
1635
  properties?: PrivateLinkResourceProperties;
1560
- };
1636
+ }
1561
1637
 
1562
1638
  /** A list of private link resources */
1563
1639
  export declare interface PrivateLinkResourceListResult {
@@ -1630,7 +1706,8 @@ export declare interface PrivateLinkServiceConnectionState {
1630
1706
  export declare type ProvisioningState = string;
1631
1707
 
1632
1708
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
1633
- export declare type ProxyResource = Resource;
1709
+ export declare interface ProxyResource extends Resource {
1710
+ }
1634
1711
 
1635
1712
  /**
1636
1713
  * Defines values for PublicNetworkAccess. \
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.32.0"
8
+ "packageVersion": "7.33.5"
9
9
  }
10
10
  ]
11
11
  }