@azure/arm-cognitiveservices 7.2.1-alpha.20221003.1 → 7.3.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.
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 +9 -9
  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
@@ -513,6 +513,11 @@ export interface DeploymentModel {
513
513
  name?: string;
514
514
  /** Deployment model version. */
515
515
  version?: string;
516
+ /**
517
+ * The call rate limit Cognitive Services account.
518
+ * NOTE: This property will not be serialized. It can only be populated by the server.
519
+ */
520
+ readonly callRateLimit?: CallRateLimit;
516
521
  }
517
522
 
518
523
  /** Cognitive Services account ModelDeprecationInfo. */
@@ -745,6 +750,18 @@ export interface DeploymentProperties {
745
750
  model?: DeploymentModel;
746
751
  /** Properties of Cognitive Services account deployment model. */
747
752
  scaleSettings?: DeploymentScaleSettings;
753
+ /**
754
+ * The capabilities.
755
+ * NOTE: This property will not be serialized. It can only be populated by the server.
756
+ */
757
+ readonly capabilities?: { [propertyName: string]: string };
758
+ /** The name of RAI policy. */
759
+ raiPolicyName?: string;
760
+ /**
761
+ * The call rate limit Cognitive Services account.
762
+ * NOTE: This property will not be serialized. It can only be populated by the server.
763
+ */
764
+ readonly callRateLimit?: CallRateLimit;
748
765
  }
749
766
 
750
767
  /** Properties of Cognitive Services account deployment model. */
@@ -814,25 +831,25 @@ export interface CommitmentPeriod {
814
831
  }
815
832
 
816
833
  /** The resource model definition for an Azure Resource Manager resource with an etag. */
817
- export type AzureEntityResource = Resource & {
834
+ export interface AzureEntityResource extends Resource {
818
835
  /**
819
836
  * Resource Etag.
820
837
  * NOTE: This property will not be serialized. It can only be populated by the server.
821
838
  */
822
839
  readonly etag?: string;
823
- };
840
+ }
824
841
 
825
842
  /** A private link resource */
826
- export type PrivateLinkResource = Resource & {
843
+ export interface PrivateLinkResource extends Resource {
827
844
  /** Resource properties. */
828
845
  properties?: PrivateLinkResourceProperties;
829
- };
846
+ }
830
847
 
831
848
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
832
- export type ProxyResource = Resource;
849
+ export interface ProxyResource extends Resource {}
833
850
 
834
851
  /** Cognitive Services account Model. */
835
- export type AccountModel = DeploymentModel & {
852
+ export interface AccountModel extends DeploymentModel {
836
853
  /** Base Model Identifier. */
837
854
  baseModel?: DeploymentModel;
838
855
  /** The max capacity. */
@@ -846,10 +863,10 @@ export type AccountModel = DeploymentModel & {
846
863
  * NOTE: This property will not be serialized. It can only be populated by the server.
847
864
  */
848
865
  readonly systemData?: SystemData;
849
- };
866
+ }
850
867
 
851
868
  /** The Private Endpoint Connection resource. */
852
- export type PrivateEndpointConnection = AzureEntityResource & {
869
+ export interface PrivateEndpointConnection extends AzureEntityResource {
853
870
  /** Resource properties. */
854
871
  properties?: PrivateEndpointConnectionProperties;
855
872
  /**
@@ -859,10 +876,10 @@ export type PrivateEndpointConnection = AzureEntityResource & {
859
876
  readonly systemData?: SystemData;
860
877
  /** The location of the private endpoint connection */
861
878
  location?: string;
862
- };
879
+ }
863
880
 
864
881
  /** Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU. */
865
- export type Account = AzureEntityResource & {
882
+ export interface Account extends AzureEntityResource {
866
883
  /** The Kind of the resource. */
867
884
  kind?: string;
868
885
  /** The resource model definition representing SKU */
@@ -880,10 +897,10 @@ export type Account = AzureEntityResource & {
880
897
  location?: string;
881
898
  /** Properties of Cognitive Services account. */
882
899
  properties?: AccountProperties;
883
- };
900
+ }
884
901
 
885
902
  /** Cognitive Services account deployment. */
886
- export type Deployment = ProxyResource & {
903
+ export interface Deployment extends ProxyResource {
887
904
  /**
888
905
  * Metadata pertaining to creation and last modification of the resource.
889
906
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -896,10 +913,10 @@ export type Deployment = ProxyResource & {
896
913
  readonly etag?: string;
897
914
  /** Properties of Cognitive Services account deployment. */
898
915
  properties?: DeploymentProperties;
899
- };
916
+ }
900
917
 
901
918
  /** Cognitive Services account commitment plan. */
902
- export type CommitmentPlan = ProxyResource & {
919
+ export interface CommitmentPlan extends ProxyResource {
903
920
  /**
904
921
  * Metadata pertaining to creation and last modification of the resource.
905
922
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -912,14 +929,19 @@ export type CommitmentPlan = ProxyResource & {
912
929
  readonly etag?: string;
913
930
  /** Properties of Cognitive Services account commitment plan. */
914
931
  properties?: CommitmentPlanProperties;
915
- };
932
+ }
916
933
 
917
934
  /** Known values of {@link SkuTier} that the service accepts. */
918
935
  export enum KnownSkuTier {
936
+ /** Free */
919
937
  Free = "Free",
938
+ /** Basic */
920
939
  Basic = "Basic",
940
+ /** Standard */
921
941
  Standard = "Standard",
942
+ /** Premium */
922
943
  Premium = "Premium",
944
+ /** Enterprise */
923
945
  Enterprise = "Enterprise"
924
946
  }
925
947
 
@@ -938,9 +960,13 @@ export type SkuTier = string;
938
960
 
939
961
  /** Known values of {@link CreatedByType} that the service accepts. */
940
962
  export enum KnownCreatedByType {
963
+ /** User */
941
964
  User = "User",
965
+ /** Application */
942
966
  Application = "Application",
967
+ /** ManagedIdentity */
943
968
  ManagedIdentity = "ManagedIdentity",
969
+ /** Key */
944
970
  Key = "Key"
945
971
  }
946
972
 
@@ -958,12 +984,19 @@ export type CreatedByType = string;
958
984
 
959
985
  /** Known values of {@link ProvisioningState} that the service accepts. */
960
986
  export enum KnownProvisioningState {
987
+ /** Accepted */
961
988
  Accepted = "Accepted",
989
+ /** Creating */
962
990
  Creating = "Creating",
991
+ /** Deleting */
963
992
  Deleting = "Deleting",
993
+ /** Moving */
964
994
  Moving = "Moving",
995
+ /** Failed */
965
996
  Failed = "Failed",
997
+ /** Succeeded */
966
998
  Succeeded = "Succeeded",
999
+ /** ResolvingDNS */
967
1000
  ResolvingDNS = "ResolvingDNS"
968
1001
  }
969
1002
 
@@ -984,7 +1017,9 @@ export type ProvisioningState = string;
984
1017
 
985
1018
  /** Known values of {@link NetworkRuleAction} that the service accepts. */
986
1019
  export enum KnownNetworkRuleAction {
1020
+ /** Allow */
987
1021
  Allow = "Allow",
1022
+ /** Deny */
988
1023
  Deny = "Deny"
989
1024
  }
990
1025
 
@@ -1000,7 +1035,9 @@ export type NetworkRuleAction = string;
1000
1035
 
1001
1036
  /** Known values of {@link KeySource} that the service accepts. */
1002
1037
  export enum KnownKeySource {
1038
+ /** MicrosoftCognitiveServices */
1003
1039
  MicrosoftCognitiveServices = "Microsoft.CognitiveServices",
1040
+ /** MicrosoftKeyVault */
1004
1041
  MicrosoftKeyVault = "Microsoft.KeyVault"
1005
1042
  }
1006
1043
 
@@ -1016,8 +1053,11 @@ export type KeySource = string;
1016
1053
 
1017
1054
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1018
1055
  export enum KnownPrivateEndpointServiceConnectionStatus {
1056
+ /** Pending */
1019
1057
  Pending = "Pending",
1058
+ /** Approved */
1020
1059
  Approved = "Approved",
1060
+ /** Rejected */
1021
1061
  Rejected = "Rejected"
1022
1062
  }
1023
1063
 
@@ -1034,9 +1074,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
1034
1074
 
1035
1075
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1036
1076
  export enum KnownPrivateEndpointConnectionProvisioningState {
1077
+ /** Succeeded */
1037
1078
  Succeeded = "Succeeded",
1079
+ /** Creating */
1038
1080
  Creating = "Creating",
1081
+ /** Deleting */
1039
1082
  Deleting = "Deleting",
1083
+ /** Failed */
1040
1084
  Failed = "Failed"
1041
1085
  }
1042
1086
 
@@ -1054,7 +1098,9 @@ export type PrivateEndpointConnectionProvisioningState = string;
1054
1098
 
1055
1099
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
1056
1100
  export enum KnownPublicNetworkAccess {
1101
+ /** Enabled */
1057
1102
  Enabled = "Enabled",
1103
+ /** Disabled */
1058
1104
  Disabled = "Disabled"
1059
1105
  }
1060
1106
 
@@ -1070,7 +1116,9 @@ export type PublicNetworkAccess = string;
1070
1116
 
1071
1117
  /** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
1072
1118
  export enum KnownResourceSkuRestrictionsReasonCode {
1119
+ /** QuotaId */
1073
1120
  QuotaId = "QuotaId",
1121
+ /** NotAvailableForSubscription */
1074
1122
  NotAvailableForSubscription = "NotAvailableForSubscription"
1075
1123
  }
1076
1124
 
@@ -1086,12 +1134,19 @@ export type ResourceSkuRestrictionsReasonCode = string;
1086
1134
 
1087
1135
  /** Known values of {@link UnitType} that the service accepts. */
1088
1136
  export enum KnownUnitType {
1137
+ /** Count */
1089
1138
  Count = "Count",
1139
+ /** Bytes */
1090
1140
  Bytes = "Bytes",
1141
+ /** Seconds */
1091
1142
  Seconds = "Seconds",
1143
+ /** Percent */
1092
1144
  Percent = "Percent",
1145
+ /** CountPerSecond */
1093
1146
  CountPerSecond = "CountPerSecond",
1147
+ /** BytesPerSecond */
1094
1148
  BytesPerSecond = "BytesPerSecond",
1149
+ /** Milliseconds */
1095
1150
  Milliseconds = "Milliseconds"
1096
1151
  }
1097
1152
 
@@ -1112,9 +1167,13 @@ export type UnitType = string;
1112
1167
 
1113
1168
  /** Known values of {@link QuotaUsageStatus} that the service accepts. */
1114
1169
  export enum KnownQuotaUsageStatus {
1170
+ /** Included */
1115
1171
  Included = "Included",
1172
+ /** Blocked */
1116
1173
  Blocked = "Blocked",
1174
+ /** InOverage */
1117
1175
  InOverage = "InOverage",
1176
+ /** Unknown */
1118
1177
  Unknown = "Unknown"
1119
1178
  }
1120
1179
 
@@ -1132,8 +1191,11 @@ export type QuotaUsageStatus = string;
1132
1191
 
1133
1192
  /** Known values of {@link Origin} that the service accepts. */
1134
1193
  export enum KnownOrigin {
1194
+ /** User */
1135
1195
  User = "user",
1196
+ /** System */
1136
1197
  System = "system",
1198
+ /** UserSystem */
1137
1199
  UserSystem = "user,system"
1138
1200
  }
1139
1201
 
@@ -1150,6 +1212,7 @@ export type Origin = string;
1150
1212
 
1151
1213
  /** Known values of {@link ActionType} that the service accepts. */
1152
1214
  export enum KnownActionType {
1215
+ /** Internal */
1153
1216
  Internal = "Internal"
1154
1217
  }
1155
1218
 
@@ -1164,8 +1227,11 @@ export type ActionType = string;
1164
1227
 
1165
1228
  /** Known values of {@link HostingModel} that the service accepts. */
1166
1229
  export enum KnownHostingModel {
1230
+ /** Web */
1167
1231
  Web = "Web",
1232
+ /** ConnectedContainer */
1168
1233
  ConnectedContainer = "ConnectedContainer",
1234
+ /** DisconnectedContainer */
1169
1235
  DisconnectedContainer = "DisconnectedContainer"
1170
1236
  }
1171
1237
 
@@ -1182,11 +1248,17 @@ export type HostingModel = string;
1182
1248
 
1183
1249
  /** Known values of {@link DeploymentProvisioningState} that the service accepts. */
1184
1250
  export enum KnownDeploymentProvisioningState {
1251
+ /** Accepted */
1185
1252
  Accepted = "Accepted",
1253
+ /** Creating */
1186
1254
  Creating = "Creating",
1255
+ /** Deleting */
1187
1256
  Deleting = "Deleting",
1257
+ /** Moving */
1188
1258
  Moving = "Moving",
1259
+ /** Failed */
1189
1260
  Failed = "Failed",
1261
+ /** Succeeded */
1190
1262
  Succeeded = "Succeeded"
1191
1263
  }
1192
1264
 
@@ -1206,7 +1278,9 @@ export type DeploymentProvisioningState = string;
1206
1278
 
1207
1279
  /** Known values of {@link DeploymentScaleType} that the service accepts. */
1208
1280
  export enum KnownDeploymentScaleType {
1281
+ /** Standard */
1209
1282
  Standard = "Standard",
1283
+ /** Manual */
1210
1284
  Manual = "Manual"
1211
1285
  }
1212
1286
 
@@ -1416,6 +1416,13 @@ export const DeploymentModel: coreClient.CompositeMapper = {
1416
1416
  type: {
1417
1417
  name: "String"
1418
1418
  }
1419
+ },
1420
+ callRateLimit: {
1421
+ serializedName: "callRateLimit",
1422
+ type: {
1423
+ name: "Composite",
1424
+ className: "CallRateLimit"
1425
+ }
1419
1426
  }
1420
1427
  }
1421
1428
  }
@@ -1991,6 +1998,27 @@ export const DeploymentProperties: coreClient.CompositeMapper = {
1991
1998
  name: "Composite",
1992
1999
  className: "DeploymentScaleSettings"
1993
2000
  }
2001
+ },
2002
+ capabilities: {
2003
+ serializedName: "capabilities",
2004
+ readOnly: true,
2005
+ type: {
2006
+ name: "Dictionary",
2007
+ value: { type: { name: "String" } }
2008
+ }
2009
+ },
2010
+ raiPolicyName: {
2011
+ serializedName: "raiPolicyName",
2012
+ type: {
2013
+ name: "String"
2014
+ }
2015
+ },
2016
+ callRateLimit: {
2017
+ serializedName: "callRateLimit",
2018
+ type: {
2019
+ name: "Composite",
2020
+ className: "CallRateLimit"
2021
+ }
1994
2022
  }
1995
2023
  }
1996
2024
  }
@@ -96,7 +96,7 @@ export const accountName: OperationURLParameter = {
96
96
  export const apiVersion: OperationQueryParameter = {
97
97
  parameterPath: "apiVersion",
98
98
  mapper: {
99
- defaultValue: "2022-03-01",
99
+ defaultValue: "2022-10-01",
100
100
  isConstant: true,
101
101
  serializedName: "api-version",
102
102
  type: {