@azure/arm-cognitiveservices 6.1.0 → 7.0.0-alpha.20211202.3

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 (249) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +4800 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/cognitiveServicesManagementClient.d.ts +42 -0
  9. package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/cognitiveServicesManagementClient.js +133 -0
  11. package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +1310 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +128 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +68 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +964 -1092
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +26 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +199 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/accounts.d.ts +138 -0
  33. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  34. package/dist-esm/src/operations/accounts.js +628 -0
  35. package/dist-esm/src/operations/accounts.js.map +1 -0
  36. package/dist-esm/src/operations/commitmentPlans.d.ts +76 -0
  37. package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -0
  38. package/dist-esm/src/operations/commitmentPlans.js +293 -0
  39. package/dist-esm/src/operations/commitmentPlans.js.map +1 -0
  40. package/dist-esm/src/operations/commitmentTiers.d.ts +35 -0
  41. package/dist-esm/src/operations/commitmentTiers.d.ts.map +1 -0
  42. package/dist-esm/src/operations/commitmentTiers.js +132 -0
  43. package/dist-esm/src/operations/commitmentTiers.js.map +1 -0
  44. package/dist-esm/src/operations/deletedAccounts.d.ts +57 -0
  45. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
  46. package/dist-esm/src/operations/deletedAccounts.js +232 -0
  47. package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
  48. package/dist-esm/src/operations/deployments.d.ts +81 -0
  49. package/dist-esm/src/operations/deployments.d.ts.map +1 -0
  50. package/dist-esm/src/operations/deployments.js +331 -0
  51. package/dist-esm/src/operations/deployments.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +1 -2
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/operations.d.ts +32 -0
  57. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/operations.js +120 -0
  59. package/dist-esm/src/operations/operations.js.map +1 -0
  60. package/dist-esm/src/operations/privateEndpointConnections.d.ts +70 -0
  61. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  62. package/dist-esm/src/operations/privateEndpointConnections.js +271 -0
  63. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  64. package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
  65. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  66. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  67. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  68. package/dist-esm/src/operations/resourceSkus.d.ts +32 -0
  69. package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -0
  70. package/dist-esm/src/operations/resourceSkus.js +124 -0
  71. package/dist-esm/src/operations/resourceSkus.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/accounts.d.ts +102 -0
  73. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  74. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/accounts.js} +2 -1
  75. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +51 -0
  77. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  78. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/commitmentPlans.js} +2 -9
  79. package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/commitmentTiers.d.ts +12 -0
  81. package/dist-esm/src/operationsInterfaces/commitmentTiers.d.ts.map +1 -0
  82. package/{src/models/commitmentTiersMappers.ts → dist-esm/src/operationsInterfaces/commitmentTiers.js} +2 -10
  83. package/dist-esm/src/operationsInterfaces/commitmentTiers.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +36 -0
  85. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
  86. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/deletedAccounts.js} +2 -2
  87. package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/deployments.d.ts +56 -0
  89. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/deployments.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/deployments.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  95. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  97. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +62 -0
  101. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
  105. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts +11 -0
  109. package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/resourceSkus.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/resourceSkus.js.map +1 -0
  112. package/dist-esm/test/cognitiveservices_examples.d.ts +4 -0
  113. package/dist-esm/test/cognitiveservices_examples.d.ts.map +1 -0
  114. package/dist-esm/test/cognitiveservices_examples.js +127 -0
  115. package/dist-esm/test/cognitiveservices_examples.js.map +1 -0
  116. package/package.json +65 -22
  117. package/review/arm-cognitiveservices.api.md +1150 -0
  118. package/rollup.config.js +181 -30
  119. package/src/cognitiveServicesManagementClient.ts +157 -153
  120. package/src/{models/resourceSkusMappers.ts → index.ts} +4 -9
  121. package/src/lroImpl.ts +34 -0
  122. package/src/models/index.ts +1063 -1831
  123. package/src/models/mappers.ts +1021 -1150
  124. package/src/models/parameters.ts +151 -54
  125. package/src/operations/accounts.ts +613 -497
  126. package/src/operations/commitmentPlans.ts +253 -203
  127. package/src/operations/commitmentTiers.ts +105 -80
  128. package/src/operations/deletedAccounts.ts +209 -161
  129. package/src/operations/deployments.ts +325 -193
  130. package/src/operations/index.ts +1 -2
  131. package/src/operations/operations.ts +85 -73
  132. package/src/operations/privateEndpointConnections.ts +257 -164
  133. package/src/operations/privateLinkResources.ts +37 -51
  134. package/src/operations/resourceSkus.ts +90 -76
  135. package/src/operationsInterfaces/accounts.ts +195 -0
  136. package/src/operationsInterfaces/commitmentPlans.ts +93 -0
  137. package/src/operationsInterfaces/commitmentTiers.ts +24 -0
  138. package/src/operationsInterfaces/deletedAccounts.ts +68 -0
  139. package/src/operationsInterfaces/deployments.ts +109 -0
  140. package/src/operationsInterfaces/index.ts +17 -0
  141. package/src/operationsInterfaces/operations.ts +22 -0
  142. package/src/operationsInterfaces/privateEndpointConnections.ts +115 -0
  143. package/src/operationsInterfaces/privateLinkResources.ts +27 -0
  144. package/src/operationsInterfaces/resourceSkus.ts +22 -0
  145. package/tsconfig.json +3 -3
  146. package/types/arm-cognitiveservices.d.ts +1860 -0
  147. package/types/tsdoc-metadata.json +11 -0
  148. package/dist/arm-cognitiveservices.js +0 -4713
  149. package/dist/arm-cognitiveservices.js.map +0 -1
  150. package/dist/arm-cognitiveservices.min.js +0 -1
  151. package/dist/arm-cognitiveservices.min.js.map +0 -1
  152. package/esm/cognitiveServicesManagementClient.d.ts +0 -80
  153. package/esm/cognitiveServicesManagementClient.d.ts.map +0 -1
  154. package/esm/cognitiveServicesManagementClient.js +0 -128
  155. package/esm/cognitiveServicesManagementClient.js.map +0 -1
  156. package/esm/cognitiveServicesManagementClientContext.d.ts +0 -22
  157. package/esm/cognitiveServicesManagementClientContext.d.ts.map +0 -1
  158. package/esm/cognitiveServicesManagementClientContext.js +0 -60
  159. package/esm/cognitiveServicesManagementClientContext.js.map +0 -1
  160. package/esm/models/accountsMappers.d.ts +0 -2
  161. package/esm/models/accountsMappers.d.ts.map +0 -1
  162. package/esm/models/accountsMappers.js +0 -9
  163. package/esm/models/accountsMappers.js.map +0 -1
  164. package/esm/models/commitmentPlansMappers.d.ts +0 -2
  165. package/esm/models/commitmentPlansMappers.d.ts.map +0 -1
  166. package/esm/models/commitmentPlansMappers.js +0 -9
  167. package/esm/models/commitmentPlansMappers.js.map +0 -1
  168. package/esm/models/commitmentTiersMappers.d.ts +0 -2
  169. package/esm/models/commitmentTiersMappers.d.ts.map +0 -1
  170. package/esm/models/commitmentTiersMappers.js +0 -9
  171. package/esm/models/commitmentTiersMappers.js.map +0 -1
  172. package/esm/models/deletedAccountsMappers.d.ts +0 -2
  173. package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
  174. package/esm/models/deletedAccountsMappers.js +0 -9
  175. package/esm/models/deletedAccountsMappers.js.map +0 -1
  176. package/esm/models/deploymentsMappers.d.ts +0 -2
  177. package/esm/models/deploymentsMappers.d.ts.map +0 -1
  178. package/esm/models/deploymentsMappers.js +0 -9
  179. package/esm/models/deploymentsMappers.js.map +0 -1
  180. package/esm/models/index.d.ts +0 -2102
  181. package/esm/models/index.d.ts.map +0 -1
  182. package/esm/models/index.js.map +0 -1
  183. package/esm/models/mappers.d.ts +0 -71
  184. package/esm/models/mappers.d.ts.map +0 -1
  185. package/esm/models/mappers.js.map +0 -1
  186. package/esm/models/operationsMappers.d.ts +0 -2
  187. package/esm/models/operationsMappers.d.ts.map +0 -1
  188. package/esm/models/operationsMappers.js.map +0 -1
  189. package/esm/models/parameters.d.ts +0 -13
  190. package/esm/models/parameters.d.ts.map +0 -1
  191. package/esm/models/parameters.js +0 -137
  192. package/esm/models/parameters.js.map +0 -1
  193. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  194. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  195. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  196. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  197. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  198. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  199. package/esm/models/privateLinkResourcesMappers.js +0 -9
  200. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  201. package/esm/models/resourceSkusMappers.d.ts +0 -2
  202. package/esm/models/resourceSkusMappers.d.ts.map +0 -1
  203. package/esm/models/resourceSkusMappers.js +0 -9
  204. package/esm/models/resourceSkusMappers.js.map +0 -1
  205. package/esm/operations/accounts.d.ts +0 -245
  206. package/esm/operations/accounts.d.ts.map +0 -1
  207. package/esm/operations/accounts.js +0 -476
  208. package/esm/operations/accounts.js.map +0 -1
  209. package/esm/operations/commitmentPlans.d.ts +0 -130
  210. package/esm/operations/commitmentPlans.d.ts.map +0 -1
  211. package/esm/operations/commitmentPlans.js +0 -216
  212. package/esm/operations/commitmentPlans.js.map +0 -1
  213. package/esm/operations/commitmentTiers.d.ts +0 -49
  214. package/esm/operations/commitmentTiers.d.ts.map +0 -1
  215. package/esm/operations/commitmentTiers.js +0 -84
  216. package/esm/operations/commitmentTiers.js.map +0 -1
  217. package/esm/operations/deletedAccounts.d.ts +0 -89
  218. package/esm/operations/deletedAccounts.d.ts.map +0 -1
  219. package/esm/operations/deletedAccounts.js +0 -168
  220. package/esm/operations/deletedAccounts.js.map +0 -1
  221. package/esm/operations/deployments.d.ts +0 -115
  222. package/esm/operations/deployments.d.ts.map +0 -1
  223. package/esm/operations/deployments.js +0 -236
  224. package/esm/operations/deployments.js.map +0 -1
  225. package/esm/operations/index.d.ts.map +0 -1
  226. package/esm/operations/index.js.map +0 -1
  227. package/esm/operations/operations.d.ts +0 -46
  228. package/esm/operations/operations.d.ts.map +0 -1
  229. package/esm/operations/operations.js +0 -79
  230. package/esm/operations/operations.js.map +0 -1
  231. package/esm/operations/privateEndpointConnections.d.ts +0 -108
  232. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  233. package/esm/operations/privateEndpointConnections.js +0 -215
  234. package/esm/operations/privateEndpointConnections.js.map +0 -1
  235. package/esm/operations/privateLinkResources.d.ts +0 -34
  236. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  237. package/esm/operations/privateLinkResources.js +0 -57
  238. package/esm/operations/privateLinkResources.js.map +0 -1
  239. package/esm/operations/resourceSkus.d.ts +0 -46
  240. package/esm/operations/resourceSkus.d.ts.map +0 -1
  241. package/esm/operations/resourceSkus.js +0 -82
  242. package/esm/operations/resourceSkus.js.map +0 -1
  243. package/src/cognitiveServicesManagementClientContext.ts +0 -67
  244. package/src/models/accountsMappers.ts +0 -59
  245. package/src/models/commitmentPlansMappers.ts +0 -52
  246. package/src/models/deletedAccountsMappers.ts +0 -52
  247. package/src/models/deploymentsMappers.ts +0 -52
  248. package/src/models/privateEndpointConnectionsMappers.ts +0 -52
  249. package/src/models/privateLinkResourcesMappers.ts +0 -52
@@ -1,4713 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-js'), require('@azure/ms-rest-azure-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-js', '@azure/ms-rest-azure-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmCognitiveservices = {}), global.msRest, global.msRestAzure));
12
- }(this, (function (exports, msRest, msRestAzure) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation.
56
- * Licensed under the MIT License.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation.
68
- * Licensed under the MIT License.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var Sku = {
76
- serializedName: "Sku",
77
- type: {
78
- name: "Composite",
79
- className: "Sku",
80
- modelProperties: {
81
- name: {
82
- required: true,
83
- serializedName: "name",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- tier: {
89
- serializedName: "tier",
90
- type: {
91
- name: "String"
92
- }
93
- },
94
- size: {
95
- serializedName: "size",
96
- type: {
97
- name: "String"
98
- }
99
- },
100
- family: {
101
- serializedName: "family",
102
- type: {
103
- name: "String"
104
- }
105
- },
106
- capacity: {
107
- serializedName: "capacity",
108
- type: {
109
- name: "Number"
110
- }
111
- }
112
- }
113
- }
114
- };
115
- var UserAssignedIdentity = {
116
- serializedName: "UserAssignedIdentity",
117
- type: {
118
- name: "Composite",
119
- className: "UserAssignedIdentity",
120
- modelProperties: {
121
- principalId: {
122
- readOnly: true,
123
- serializedName: "principalId",
124
- type: {
125
- name: "String"
126
- }
127
- },
128
- clientId: {
129
- readOnly: true,
130
- serializedName: "clientId",
131
- type: {
132
- name: "String"
133
- }
134
- }
135
- }
136
- }
137
- };
138
- var Identity = {
139
- serializedName: "Identity",
140
- type: {
141
- name: "Composite",
142
- className: "Identity",
143
- modelProperties: {
144
- type: {
145
- serializedName: "type",
146
- type: {
147
- name: "Enum",
148
- allowedValues: [
149
- "None",
150
- "SystemAssigned",
151
- "UserAssigned",
152
- "SystemAssigned, UserAssigned"
153
- ]
154
- }
155
- },
156
- tenantId: {
157
- readOnly: true,
158
- serializedName: "tenantId",
159
- type: {
160
- name: "String"
161
- }
162
- },
163
- principalId: {
164
- readOnly: true,
165
- serializedName: "principalId",
166
- type: {
167
- name: "String"
168
- }
169
- },
170
- userAssignedIdentities: {
171
- serializedName: "userAssignedIdentities",
172
- type: {
173
- name: "Dictionary",
174
- value: {
175
- type: {
176
- name: "Composite",
177
- className: "UserAssignedIdentity"
178
- }
179
- }
180
- }
181
- }
182
- }
183
- }
184
- };
185
- var SystemData = {
186
- serializedName: "systemData",
187
- type: {
188
- name: "Composite",
189
- className: "SystemData",
190
- modelProperties: {
191
- createdBy: {
192
- serializedName: "createdBy",
193
- type: {
194
- name: "String"
195
- }
196
- },
197
- createdByType: {
198
- serializedName: "createdByType",
199
- type: {
200
- name: "String"
201
- }
202
- },
203
- createdAt: {
204
- serializedName: "createdAt",
205
- type: {
206
- name: "DateTime"
207
- }
208
- },
209
- lastModifiedBy: {
210
- serializedName: "lastModifiedBy",
211
- type: {
212
- name: "String"
213
- }
214
- },
215
- lastModifiedByType: {
216
- serializedName: "lastModifiedByType",
217
- type: {
218
- name: "String"
219
- }
220
- },
221
- lastModifiedAt: {
222
- serializedName: "lastModifiedAt",
223
- type: {
224
- name: "DateTime"
225
- }
226
- }
227
- }
228
- }
229
- };
230
- var SkuCapability = {
231
- serializedName: "SkuCapability",
232
- type: {
233
- name: "Composite",
234
- className: "SkuCapability",
235
- modelProperties: {
236
- name: {
237
- serializedName: "name",
238
- type: {
239
- name: "String"
240
- }
241
- },
242
- value: {
243
- serializedName: "value",
244
- type: {
245
- name: "String"
246
- }
247
- }
248
- }
249
- }
250
- };
251
- var SkuChangeInfo = {
252
- serializedName: "SkuChangeInfo",
253
- type: {
254
- name: "Composite",
255
- className: "SkuChangeInfo",
256
- modelProperties: {
257
- countOfDowngrades: {
258
- serializedName: "countOfDowngrades",
259
- type: {
260
- name: "Number"
261
- }
262
- },
263
- countOfUpgradesAfterDowngrades: {
264
- serializedName: "countOfUpgradesAfterDowngrades",
265
- type: {
266
- name: "Number"
267
- }
268
- },
269
- lastChangeDate: {
270
- serializedName: "lastChangeDate",
271
- type: {
272
- name: "String"
273
- }
274
- }
275
- }
276
- }
277
- };
278
- var IpRule = {
279
- serializedName: "IpRule",
280
- type: {
281
- name: "Composite",
282
- className: "IpRule",
283
- modelProperties: {
284
- value: {
285
- required: true,
286
- serializedName: "value",
287
- type: {
288
- name: "String"
289
- }
290
- }
291
- }
292
- }
293
- };
294
- var VirtualNetworkRule = {
295
- serializedName: "VirtualNetworkRule",
296
- type: {
297
- name: "Composite",
298
- className: "VirtualNetworkRule",
299
- modelProperties: {
300
- id: {
301
- required: true,
302
- serializedName: "id",
303
- type: {
304
- name: "String"
305
- }
306
- },
307
- state: {
308
- serializedName: "state",
309
- type: {
310
- name: "String"
311
- }
312
- },
313
- ignoreMissingVnetServiceEndpoint: {
314
- serializedName: "ignoreMissingVnetServiceEndpoint",
315
- type: {
316
- name: "Boolean"
317
- }
318
- }
319
- }
320
- }
321
- };
322
- var NetworkRuleSet = {
323
- serializedName: "NetworkRuleSet",
324
- type: {
325
- name: "Composite",
326
- className: "NetworkRuleSet",
327
- modelProperties: {
328
- defaultAction: {
329
- serializedName: "defaultAction",
330
- type: {
331
- name: "String"
332
- }
333
- },
334
- ipRules: {
335
- serializedName: "ipRules",
336
- type: {
337
- name: "Sequence",
338
- element: {
339
- type: {
340
- name: "Composite",
341
- className: "IpRule"
342
- }
343
- }
344
- }
345
- },
346
- virtualNetworkRules: {
347
- serializedName: "virtualNetworkRules",
348
- type: {
349
- name: "Sequence",
350
- element: {
351
- type: {
352
- name: "Composite",
353
- className: "VirtualNetworkRule"
354
- }
355
- }
356
- }
357
- }
358
- }
359
- }
360
- };
361
- var KeyVaultProperties = {
362
- serializedName: "KeyVaultProperties",
363
- type: {
364
- name: "Composite",
365
- className: "KeyVaultProperties",
366
- modelProperties: {
367
- keyName: {
368
- serializedName: "keyName",
369
- type: {
370
- name: "String"
371
- }
372
- },
373
- keyVersion: {
374
- serializedName: "keyVersion",
375
- type: {
376
- name: "String"
377
- }
378
- },
379
- keyVaultUri: {
380
- serializedName: "keyVaultUri",
381
- type: {
382
- name: "String"
383
- }
384
- },
385
- identityClientId: {
386
- serializedName: "identityClientId",
387
- type: {
388
- name: "String"
389
- }
390
- }
391
- }
392
- }
393
- };
394
- var Encryption = {
395
- serializedName: "Encryption",
396
- type: {
397
- name: "Composite",
398
- className: "Encryption",
399
- modelProperties: {
400
- keyVaultProperties: {
401
- serializedName: "keyVaultProperties",
402
- type: {
403
- name: "Composite",
404
- className: "KeyVaultProperties"
405
- }
406
- },
407
- keySource: {
408
- serializedName: "keySource",
409
- defaultValue: 'Microsoft.KeyVault',
410
- type: {
411
- name: "String"
412
- }
413
- }
414
- }
415
- }
416
- };
417
- var UserOwnedStorage = {
418
- serializedName: "UserOwnedStorage",
419
- type: {
420
- name: "Composite",
421
- className: "UserOwnedStorage",
422
- modelProperties: {
423
- resourceId: {
424
- serializedName: "resourceId",
425
- type: {
426
- name: "String"
427
- }
428
- },
429
- identityClientId: {
430
- serializedName: "identityClientId",
431
- type: {
432
- name: "String"
433
- }
434
- }
435
- }
436
- }
437
- };
438
- var PrivateEndpoint = {
439
- serializedName: "PrivateEndpoint",
440
- type: {
441
- name: "Composite",
442
- className: "PrivateEndpoint",
443
- modelProperties: {
444
- id: {
445
- readOnly: true,
446
- serializedName: "id",
447
- type: {
448
- name: "String"
449
- }
450
- }
451
- }
452
- }
453
- };
454
- var PrivateLinkServiceConnectionState = {
455
- serializedName: "PrivateLinkServiceConnectionState",
456
- type: {
457
- name: "Composite",
458
- className: "PrivateLinkServiceConnectionState",
459
- modelProperties: {
460
- status: {
461
- serializedName: "status",
462
- type: {
463
- name: "String"
464
- }
465
- },
466
- description: {
467
- serializedName: "description",
468
- type: {
469
- name: "String"
470
- }
471
- },
472
- actionsRequired: {
473
- serializedName: "actionsRequired",
474
- type: {
475
- name: "String"
476
- }
477
- }
478
- }
479
- }
480
- };
481
- var PrivateEndpointConnectionProperties = {
482
- serializedName: "PrivateEndpointConnectionProperties",
483
- type: {
484
- name: "Composite",
485
- className: "PrivateEndpointConnectionProperties",
486
- modelProperties: {
487
- privateEndpoint: {
488
- serializedName: "privateEndpoint",
489
- type: {
490
- name: "Composite",
491
- className: "PrivateEndpoint"
492
- }
493
- },
494
- privateLinkServiceConnectionState: {
495
- required: true,
496
- serializedName: "privateLinkServiceConnectionState",
497
- type: {
498
- name: "Composite",
499
- className: "PrivateLinkServiceConnectionState"
500
- }
501
- },
502
- provisioningState: {
503
- serializedName: "provisioningState",
504
- type: {
505
- name: "String"
506
- }
507
- },
508
- groupIds: {
509
- serializedName: "groupIds",
510
- type: {
511
- name: "Sequence",
512
- element: {
513
- type: {
514
- name: "String"
515
- }
516
- }
517
- }
518
- }
519
- }
520
- }
521
- };
522
- var Resource = {
523
- serializedName: "Resource",
524
- type: {
525
- name: "Composite",
526
- className: "Resource",
527
- modelProperties: {
528
- id: {
529
- readOnly: true,
530
- serializedName: "id",
531
- type: {
532
- name: "String"
533
- }
534
- },
535
- name: {
536
- readOnly: true,
537
- serializedName: "name",
538
- type: {
539
- name: "String"
540
- }
541
- },
542
- type: {
543
- readOnly: true,
544
- serializedName: "type",
545
- type: {
546
- name: "String"
547
- }
548
- }
549
- }
550
- }
551
- };
552
- var AzureEntityResource = {
553
- serializedName: "AzureEntityResource",
554
- type: {
555
- name: "Composite",
556
- className: "AzureEntityResource",
557
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { etag: {
558
- readOnly: true,
559
- serializedName: "etag",
560
- type: {
561
- name: "String"
562
- }
563
- } })
564
- }
565
- };
566
- var PrivateEndpointConnection = {
567
- serializedName: "PrivateEndpointConnection",
568
- type: {
569
- name: "Composite",
570
- className: "PrivateEndpointConnection",
571
- modelProperties: __assign(__assign({}, AzureEntityResource.type.modelProperties), { properties: {
572
- serializedName: "properties",
573
- type: {
574
- name: "Composite",
575
- className: "PrivateEndpointConnectionProperties"
576
- }
577
- }, systemData: {
578
- readOnly: true,
579
- serializedName: "systemData",
580
- type: {
581
- name: "Composite",
582
- className: "SystemData"
583
- }
584
- }, location: {
585
- serializedName: "location",
586
- type: {
587
- name: "String"
588
- }
589
- } })
590
- }
591
- };
592
- var ApiProperties = {
593
- serializedName: "ApiProperties",
594
- type: {
595
- name: "Composite",
596
- className: "ApiProperties",
597
- modelProperties: {
598
- qnaRuntimeEndpoint: {
599
- serializedName: "qnaRuntimeEndpoint",
600
- type: {
601
- name: "String"
602
- }
603
- },
604
- qnaAzureSearchEndpointKey: {
605
- serializedName: "qnaAzureSearchEndpointKey",
606
- type: {
607
- name: "String"
608
- }
609
- },
610
- qnaAzureSearchEndpointId: {
611
- serializedName: "qnaAzureSearchEndpointId",
612
- type: {
613
- name: "String"
614
- }
615
- },
616
- statisticsEnabled: {
617
- serializedName: "statisticsEnabled",
618
- type: {
619
- name: "Boolean"
620
- }
621
- },
622
- eventHubConnectionString: {
623
- serializedName: "eventHubConnectionString",
624
- constraints: {
625
- MaxLength: 1000,
626
- Pattern: /^( *)Endpoint=sb:\/\/(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$/
627
- },
628
- type: {
629
- name: "String"
630
- }
631
- },
632
- storageAccountConnectionString: {
633
- serializedName: "storageAccountConnectionString",
634
- constraints: {
635
- MaxLength: 1000,
636
- Pattern: /^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$/
637
- },
638
- type: {
639
- name: "String"
640
- }
641
- },
642
- aadClientId: {
643
- serializedName: "aadClientId",
644
- constraints: {
645
- MaxLength: 500
646
- },
647
- type: {
648
- name: "String"
649
- }
650
- },
651
- aadTenantId: {
652
- serializedName: "aadTenantId",
653
- constraints: {
654
- MaxLength: 500
655
- },
656
- type: {
657
- name: "String"
658
- }
659
- },
660
- superUser: {
661
- serializedName: "superUser",
662
- constraints: {
663
- MaxLength: 500
664
- },
665
- type: {
666
- name: "String"
667
- }
668
- },
669
- websiteName: {
670
- serializedName: "websiteName",
671
- constraints: {
672
- MaxLength: 500
673
- },
674
- type: {
675
- name: "String"
676
- }
677
- }
678
- },
679
- additionalProperties: {
680
- type: {
681
- name: "Object"
682
- }
683
- }
684
- }
685
- };
686
- var RequestMatchPattern = {
687
- serializedName: "RequestMatchPattern",
688
- type: {
689
- name: "Composite",
690
- className: "RequestMatchPattern",
691
- modelProperties: {
692
- path: {
693
- serializedName: "path",
694
- type: {
695
- name: "String"
696
- }
697
- },
698
- method: {
699
- serializedName: "method",
700
- type: {
701
- name: "String"
702
- }
703
- }
704
- }
705
- }
706
- };
707
- var ThrottlingRule = {
708
- serializedName: "ThrottlingRule",
709
- type: {
710
- name: "Composite",
711
- className: "ThrottlingRule",
712
- modelProperties: {
713
- key: {
714
- serializedName: "key",
715
- type: {
716
- name: "String"
717
- }
718
- },
719
- renewalPeriod: {
720
- serializedName: "renewalPeriod",
721
- type: {
722
- name: "Number"
723
- }
724
- },
725
- count: {
726
- serializedName: "count",
727
- type: {
728
- name: "Number"
729
- }
730
- },
731
- minCount: {
732
- serializedName: "minCount",
733
- type: {
734
- name: "Number"
735
- }
736
- },
737
- dynamicThrottlingEnabled: {
738
- serializedName: "dynamicThrottlingEnabled",
739
- type: {
740
- name: "Boolean"
741
- }
742
- },
743
- matchPatterns: {
744
- serializedName: "matchPatterns",
745
- type: {
746
- name: "Sequence",
747
- element: {
748
- type: {
749
- name: "Composite",
750
- className: "RequestMatchPattern"
751
- }
752
- }
753
- }
754
- }
755
- }
756
- }
757
- };
758
- var CallRateLimit = {
759
- serializedName: "CallRateLimit",
760
- type: {
761
- name: "Composite",
762
- className: "CallRateLimit",
763
- modelProperties: {
764
- count: {
765
- serializedName: "count",
766
- type: {
767
- name: "Number"
768
- }
769
- },
770
- renewalPeriod: {
771
- serializedName: "renewalPeriod",
772
- type: {
773
- name: "Number"
774
- }
775
- },
776
- rules: {
777
- serializedName: "rules",
778
- type: {
779
- name: "Sequence",
780
- element: {
781
- type: {
782
- name: "Composite",
783
- className: "ThrottlingRule"
784
- }
785
- }
786
- }
787
- }
788
- }
789
- }
790
- };
791
- var QuotaLimit = {
792
- serializedName: "QuotaLimit",
793
- type: {
794
- name: "Composite",
795
- className: "QuotaLimit",
796
- modelProperties: {
797
- count: {
798
- serializedName: "count",
799
- type: {
800
- name: "Number"
801
- }
802
- },
803
- renewalPeriod: {
804
- serializedName: "renewalPeriod",
805
- type: {
806
- name: "Number"
807
- }
808
- },
809
- rules: {
810
- serializedName: "rules",
811
- type: {
812
- name: "Sequence",
813
- element: {
814
- type: {
815
- name: "Composite",
816
- className: "ThrottlingRule"
817
- }
818
- }
819
- }
820
- }
821
- }
822
- }
823
- };
824
- var AccountProperties = {
825
- serializedName: "AccountProperties",
826
- type: {
827
- name: "Composite",
828
- className: "AccountProperties",
829
- modelProperties: {
830
- provisioningState: {
831
- readOnly: true,
832
- serializedName: "provisioningState",
833
- type: {
834
- name: "String"
835
- }
836
- },
837
- endpoint: {
838
- readOnly: true,
839
- serializedName: "endpoint",
840
- type: {
841
- name: "String"
842
- }
843
- },
844
- internalId: {
845
- readOnly: true,
846
- serializedName: "internalId",
847
- type: {
848
- name: "String"
849
- }
850
- },
851
- capabilities: {
852
- readOnly: true,
853
- serializedName: "capabilities",
854
- type: {
855
- name: "Sequence",
856
- element: {
857
- type: {
858
- name: "Composite",
859
- className: "SkuCapability"
860
- }
861
- }
862
- }
863
- },
864
- isMigrated: {
865
- readOnly: true,
866
- serializedName: "isMigrated",
867
- type: {
868
- name: "Boolean"
869
- }
870
- },
871
- migrationToken: {
872
- serializedName: "migrationToken",
873
- type: {
874
- name: "String"
875
- }
876
- },
877
- skuChangeInfo: {
878
- readOnly: true,
879
- serializedName: "skuChangeInfo",
880
- type: {
881
- name: "Composite",
882
- className: "SkuChangeInfo"
883
- }
884
- },
885
- customSubDomainName: {
886
- serializedName: "customSubDomainName",
887
- type: {
888
- name: "String"
889
- }
890
- },
891
- networkAcls: {
892
- serializedName: "networkAcls",
893
- type: {
894
- name: "Composite",
895
- className: "NetworkRuleSet"
896
- }
897
- },
898
- encryption: {
899
- serializedName: "encryption",
900
- type: {
901
- name: "Composite",
902
- className: "Encryption"
903
- }
904
- },
905
- userOwnedStorage: {
906
- serializedName: "userOwnedStorage",
907
- type: {
908
- name: "Sequence",
909
- element: {
910
- type: {
911
- name: "Composite",
912
- className: "UserOwnedStorage"
913
- }
914
- }
915
- }
916
- },
917
- privateEndpointConnections: {
918
- readOnly: true,
919
- serializedName: "privateEndpointConnections",
920
- type: {
921
- name: "Sequence",
922
- element: {
923
- type: {
924
- name: "Composite",
925
- className: "PrivateEndpointConnection"
926
- }
927
- }
928
- }
929
- },
930
- publicNetworkAccess: {
931
- serializedName: "publicNetworkAccess",
932
- type: {
933
- name: "String"
934
- }
935
- },
936
- apiProperties: {
937
- serializedName: "apiProperties",
938
- type: {
939
- name: "Composite",
940
- className: "ApiProperties",
941
- additionalProperties: {
942
- type: {
943
- name: "Object"
944
- }
945
- }
946
- }
947
- },
948
- dateCreated: {
949
- readOnly: true,
950
- serializedName: "dateCreated",
951
- type: {
952
- name: "String"
953
- }
954
- },
955
- callRateLimit: {
956
- readOnly: true,
957
- serializedName: "callRateLimit",
958
- type: {
959
- name: "Composite",
960
- className: "CallRateLimit"
961
- }
962
- },
963
- quotaLimit: {
964
- readOnly: true,
965
- serializedName: "quotaLimit",
966
- type: {
967
- name: "Composite",
968
- className: "QuotaLimit"
969
- }
970
- },
971
- restrictOutboundNetworkAccess: {
972
- serializedName: "restrictOutboundNetworkAccess",
973
- type: {
974
- name: "Boolean"
975
- }
976
- },
977
- allowedFqdnList: {
978
- serializedName: "allowedFqdnList",
979
- type: {
980
- name: "Sequence",
981
- element: {
982
- type: {
983
- name: "String"
984
- }
985
- }
986
- }
987
- },
988
- disableLocalAuth: {
989
- serializedName: "disableLocalAuth",
990
- type: {
991
- name: "Boolean"
992
- }
993
- },
994
- endpoints: {
995
- readOnly: true,
996
- serializedName: "endpoints",
997
- type: {
998
- name: "Dictionary",
999
- value: {
1000
- type: {
1001
- name: "String"
1002
- }
1003
- }
1004
- }
1005
- },
1006
- restore: {
1007
- serializedName: "restore",
1008
- type: {
1009
- name: "Boolean"
1010
- }
1011
- }
1012
- }
1013
- }
1014
- };
1015
- var Account = {
1016
- serializedName: "Account",
1017
- type: {
1018
- name: "Composite",
1019
- className: "Account",
1020
- modelProperties: __assign(__assign({}, AzureEntityResource.type.modelProperties), { kind: {
1021
- serializedName: "kind",
1022
- type: {
1023
- name: "String"
1024
- }
1025
- }, sku: {
1026
- serializedName: "sku",
1027
- type: {
1028
- name: "Composite",
1029
- className: "Sku"
1030
- }
1031
- }, identity: {
1032
- serializedName: "identity",
1033
- type: {
1034
- name: "Composite",
1035
- className: "Identity"
1036
- }
1037
- }, systemData: {
1038
- readOnly: true,
1039
- serializedName: "systemData",
1040
- type: {
1041
- name: "Composite",
1042
- className: "SystemData"
1043
- }
1044
- }, tags: {
1045
- serializedName: "tags",
1046
- type: {
1047
- name: "Dictionary",
1048
- value: {
1049
- type: {
1050
- name: "String"
1051
- }
1052
- }
1053
- }
1054
- }, location: {
1055
- serializedName: "location",
1056
- type: {
1057
- name: "String"
1058
- }
1059
- }, properties: {
1060
- serializedName: "properties",
1061
- type: {
1062
- name: "Composite",
1063
- className: "AccountProperties"
1064
- }
1065
- } })
1066
- }
1067
- };
1068
- var ApiKeys = {
1069
- serializedName: "ApiKeys",
1070
- type: {
1071
- name: "Composite",
1072
- className: "ApiKeys",
1073
- modelProperties: {
1074
- key1: {
1075
- serializedName: "key1",
1076
- type: {
1077
- name: "String"
1078
- }
1079
- },
1080
- key2: {
1081
- serializedName: "key2",
1082
- type: {
1083
- name: "String"
1084
- }
1085
- }
1086
- }
1087
- }
1088
- };
1089
- var RegenerateKeyParameters = {
1090
- serializedName: "RegenerateKeyParameters",
1091
- type: {
1092
- name: "Composite",
1093
- className: "RegenerateKeyParameters",
1094
- modelProperties: {
1095
- keyName: {
1096
- required: true,
1097
- serializedName: "keyName",
1098
- type: {
1099
- name: "Enum",
1100
- allowedValues: [
1101
- "Key1",
1102
- "Key2"
1103
- ]
1104
- }
1105
- }
1106
- }
1107
- }
1108
- };
1109
- var AccountSku = {
1110
- serializedName: "AccountSku",
1111
- type: {
1112
- name: "Composite",
1113
- className: "AccountSku",
1114
- modelProperties: {
1115
- resourceType: {
1116
- serializedName: "resourceType",
1117
- type: {
1118
- name: "String"
1119
- }
1120
- },
1121
- sku: {
1122
- serializedName: "sku",
1123
- type: {
1124
- name: "Composite",
1125
- className: "Sku"
1126
- }
1127
- }
1128
- }
1129
- }
1130
- };
1131
- var AccountSkuListResult = {
1132
- serializedName: "AccountSkuListResult",
1133
- type: {
1134
- name: "Composite",
1135
- className: "AccountSkuListResult",
1136
- modelProperties: {
1137
- value: {
1138
- serializedName: "value",
1139
- type: {
1140
- name: "Sequence",
1141
- element: {
1142
- type: {
1143
- name: "Composite",
1144
- className: "AccountSku"
1145
- }
1146
- }
1147
- }
1148
- }
1149
- }
1150
- }
1151
- };
1152
- var MetricName = {
1153
- serializedName: "MetricName",
1154
- type: {
1155
- name: "Composite",
1156
- className: "MetricName",
1157
- modelProperties: {
1158
- value: {
1159
- serializedName: "value",
1160
- type: {
1161
- name: "String"
1162
- }
1163
- },
1164
- localizedValue: {
1165
- serializedName: "localizedValue",
1166
- type: {
1167
- name: "String"
1168
- }
1169
- }
1170
- }
1171
- }
1172
- };
1173
- var Usage = {
1174
- serializedName: "Usage",
1175
- type: {
1176
- name: "Composite",
1177
- className: "Usage",
1178
- modelProperties: {
1179
- unit: {
1180
- serializedName: "unit",
1181
- type: {
1182
- name: "String"
1183
- }
1184
- },
1185
- name: {
1186
- serializedName: "name",
1187
- type: {
1188
- name: "Composite",
1189
- className: "MetricName"
1190
- }
1191
- },
1192
- quotaPeriod: {
1193
- serializedName: "quotaPeriod",
1194
- type: {
1195
- name: "String"
1196
- }
1197
- },
1198
- limit: {
1199
- serializedName: "limit",
1200
- type: {
1201
- name: "Number"
1202
- }
1203
- },
1204
- currentValue: {
1205
- serializedName: "currentValue",
1206
- type: {
1207
- name: "Number"
1208
- }
1209
- },
1210
- nextResetTime: {
1211
- serializedName: "nextResetTime",
1212
- type: {
1213
- name: "String"
1214
- }
1215
- },
1216
- status: {
1217
- serializedName: "status",
1218
- type: {
1219
- name: "String"
1220
- }
1221
- }
1222
- }
1223
- }
1224
- };
1225
- var UsageListResult = {
1226
- serializedName: "UsageListResult",
1227
- type: {
1228
- name: "Composite",
1229
- className: "UsageListResult",
1230
- modelProperties: {
1231
- value: {
1232
- serializedName: "value",
1233
- type: {
1234
- name: "Sequence",
1235
- element: {
1236
- type: {
1237
- name: "Composite",
1238
- className: "Usage"
1239
- }
1240
- }
1241
- }
1242
- }
1243
- }
1244
- }
1245
- };
1246
- var CheckSkuAvailabilityParameter = {
1247
- serializedName: "CheckSkuAvailabilityParameter",
1248
- type: {
1249
- name: "Composite",
1250
- className: "CheckSkuAvailabilityParameter",
1251
- modelProperties: {
1252
- skus: {
1253
- required: true,
1254
- serializedName: "skus",
1255
- type: {
1256
- name: "Sequence",
1257
- element: {
1258
- type: {
1259
- name: "String"
1260
- }
1261
- }
1262
- }
1263
- },
1264
- kind: {
1265
- required: true,
1266
- serializedName: "kind",
1267
- type: {
1268
- name: "String"
1269
- }
1270
- },
1271
- type: {
1272
- required: true,
1273
- serializedName: "type",
1274
- type: {
1275
- name: "String"
1276
- }
1277
- }
1278
- }
1279
- }
1280
- };
1281
- var SkuAvailability = {
1282
- serializedName: "SkuAvailability",
1283
- type: {
1284
- name: "Composite",
1285
- className: "SkuAvailability",
1286
- modelProperties: {
1287
- kind: {
1288
- serializedName: "kind",
1289
- type: {
1290
- name: "String"
1291
- }
1292
- },
1293
- type: {
1294
- serializedName: "type",
1295
- type: {
1296
- name: "String"
1297
- }
1298
- },
1299
- skuName: {
1300
- serializedName: "skuName",
1301
- type: {
1302
- name: "String"
1303
- }
1304
- },
1305
- skuAvailable: {
1306
- serializedName: "skuAvailable",
1307
- type: {
1308
- name: "Boolean"
1309
- }
1310
- },
1311
- reason: {
1312
- serializedName: "reason",
1313
- type: {
1314
- name: "String"
1315
- }
1316
- },
1317
- message: {
1318
- serializedName: "message",
1319
- type: {
1320
- name: "String"
1321
- }
1322
- }
1323
- }
1324
- }
1325
- };
1326
- var SkuAvailabilityListResult = {
1327
- serializedName: "SkuAvailabilityListResult",
1328
- type: {
1329
- name: "Composite",
1330
- className: "SkuAvailabilityListResult",
1331
- modelProperties: {
1332
- value: {
1333
- serializedName: "value",
1334
- type: {
1335
- name: "Sequence",
1336
- element: {
1337
- type: {
1338
- name: "Composite",
1339
- className: "SkuAvailability"
1340
- }
1341
- }
1342
- }
1343
- }
1344
- }
1345
- }
1346
- };
1347
- var CheckDomainAvailabilityParameter = {
1348
- serializedName: "CheckDomainAvailabilityParameter",
1349
- type: {
1350
- name: "Composite",
1351
- className: "CheckDomainAvailabilityParameter",
1352
- modelProperties: {
1353
- subdomainName: {
1354
- required: true,
1355
- serializedName: "subdomainName",
1356
- type: {
1357
- name: "String"
1358
- }
1359
- },
1360
- type: {
1361
- required: true,
1362
- serializedName: "type",
1363
- type: {
1364
- name: "String"
1365
- }
1366
- },
1367
- kind: {
1368
- serializedName: "kind",
1369
- type: {
1370
- name: "String"
1371
- }
1372
- }
1373
- }
1374
- }
1375
- };
1376
- var DomainAvailability = {
1377
- serializedName: "DomainAvailability",
1378
- type: {
1379
- name: "Composite",
1380
- className: "DomainAvailability",
1381
- modelProperties: {
1382
- isSubdomainAvailable: {
1383
- serializedName: "isSubdomainAvailable",
1384
- type: {
1385
- name: "Boolean"
1386
- }
1387
- },
1388
- reason: {
1389
- serializedName: "reason",
1390
- type: {
1391
- name: "String"
1392
- }
1393
- },
1394
- subdomainName: {
1395
- serializedName: "subdomainName",
1396
- type: {
1397
- name: "String"
1398
- }
1399
- },
1400
- type: {
1401
- serializedName: "type",
1402
- type: {
1403
- name: "String"
1404
- }
1405
- },
1406
- kind: {
1407
- serializedName: "kind",
1408
- type: {
1409
- name: "String"
1410
- }
1411
- }
1412
- }
1413
- }
1414
- };
1415
- var ResourceSkuRestrictionInfo = {
1416
- serializedName: "ResourceSkuRestrictionInfo",
1417
- type: {
1418
- name: "Composite",
1419
- className: "ResourceSkuRestrictionInfo",
1420
- modelProperties: {
1421
- locations: {
1422
- serializedName: "locations",
1423
- type: {
1424
- name: "Sequence",
1425
- element: {
1426
- type: {
1427
- name: "String"
1428
- }
1429
- }
1430
- }
1431
- },
1432
- zones: {
1433
- serializedName: "zones",
1434
- type: {
1435
- name: "Sequence",
1436
- element: {
1437
- type: {
1438
- name: "String"
1439
- }
1440
- }
1441
- }
1442
- }
1443
- }
1444
- }
1445
- };
1446
- var ResourceSkuRestrictions = {
1447
- serializedName: "ResourceSkuRestrictions",
1448
- type: {
1449
- name: "Composite",
1450
- className: "ResourceSkuRestrictions",
1451
- modelProperties: {
1452
- type: {
1453
- serializedName: "type",
1454
- type: {
1455
- name: "Enum",
1456
- allowedValues: [
1457
- "Location",
1458
- "Zone"
1459
- ]
1460
- }
1461
- },
1462
- values: {
1463
- serializedName: "values",
1464
- type: {
1465
- name: "Sequence",
1466
- element: {
1467
- type: {
1468
- name: "String"
1469
- }
1470
- }
1471
- }
1472
- },
1473
- restrictionInfo: {
1474
- serializedName: "restrictionInfo",
1475
- type: {
1476
- name: "Composite",
1477
- className: "ResourceSkuRestrictionInfo"
1478
- }
1479
- },
1480
- reasonCode: {
1481
- serializedName: "reasonCode",
1482
- type: {
1483
- name: "String"
1484
- }
1485
- }
1486
- }
1487
- }
1488
- };
1489
- var ResourceSku = {
1490
- serializedName: "ResourceSku",
1491
- type: {
1492
- name: "Composite",
1493
- className: "ResourceSku",
1494
- modelProperties: {
1495
- resourceType: {
1496
- serializedName: "resourceType",
1497
- type: {
1498
- name: "String"
1499
- }
1500
- },
1501
- name: {
1502
- serializedName: "name",
1503
- type: {
1504
- name: "String"
1505
- }
1506
- },
1507
- tier: {
1508
- serializedName: "tier",
1509
- type: {
1510
- name: "String"
1511
- }
1512
- },
1513
- kind: {
1514
- serializedName: "kind",
1515
- type: {
1516
- name: "String"
1517
- }
1518
- },
1519
- locations: {
1520
- serializedName: "locations",
1521
- type: {
1522
- name: "Sequence",
1523
- element: {
1524
- type: {
1525
- name: "String"
1526
- }
1527
- }
1528
- }
1529
- },
1530
- restrictions: {
1531
- serializedName: "restrictions",
1532
- type: {
1533
- name: "Sequence",
1534
- element: {
1535
- type: {
1536
- name: "Composite",
1537
- className: "ResourceSkuRestrictions"
1538
- }
1539
- }
1540
- }
1541
- }
1542
- }
1543
- }
1544
- };
1545
- var PrivateEndpointConnectionListResult = {
1546
- serializedName: "PrivateEndpointConnectionListResult",
1547
- type: {
1548
- name: "Composite",
1549
- className: "PrivateEndpointConnectionListResult",
1550
- modelProperties: {
1551
- value: {
1552
- serializedName: "value",
1553
- type: {
1554
- name: "Sequence",
1555
- element: {
1556
- type: {
1557
- name: "Composite",
1558
- className: "PrivateEndpointConnection"
1559
- }
1560
- }
1561
- }
1562
- }
1563
- }
1564
- }
1565
- };
1566
- var PrivateLinkResourceProperties = {
1567
- serializedName: "PrivateLinkResourceProperties",
1568
- type: {
1569
- name: "Composite",
1570
- className: "PrivateLinkResourceProperties",
1571
- modelProperties: {
1572
- groupId: {
1573
- readOnly: true,
1574
- serializedName: "groupId",
1575
- type: {
1576
- name: "String"
1577
- }
1578
- },
1579
- requiredMembers: {
1580
- readOnly: true,
1581
- serializedName: "requiredMembers",
1582
- type: {
1583
- name: "Sequence",
1584
- element: {
1585
- type: {
1586
- name: "String"
1587
- }
1588
- }
1589
- }
1590
- },
1591
- requiredZoneNames: {
1592
- serializedName: "requiredZoneNames",
1593
- type: {
1594
- name: "Sequence",
1595
- element: {
1596
- type: {
1597
- name: "String"
1598
- }
1599
- }
1600
- }
1601
- },
1602
- displayName: {
1603
- readOnly: true,
1604
- serializedName: "displayName",
1605
- type: {
1606
- name: "String"
1607
- }
1608
- }
1609
- }
1610
- }
1611
- };
1612
- var PrivateLinkResource = {
1613
- serializedName: "PrivateLinkResource",
1614
- type: {
1615
- name: "Composite",
1616
- className: "PrivateLinkResource",
1617
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { properties: {
1618
- serializedName: "properties",
1619
- type: {
1620
- name: "Composite",
1621
- className: "PrivateLinkResourceProperties"
1622
- }
1623
- } })
1624
- }
1625
- };
1626
- var PrivateLinkResourceListResult = {
1627
- serializedName: "PrivateLinkResourceListResult",
1628
- type: {
1629
- name: "Composite",
1630
- className: "PrivateLinkResourceListResult",
1631
- modelProperties: {
1632
- value: {
1633
- serializedName: "value",
1634
- type: {
1635
- name: "Sequence",
1636
- element: {
1637
- type: {
1638
- name: "Composite",
1639
- className: "PrivateLinkResource"
1640
- }
1641
- }
1642
- }
1643
- }
1644
- }
1645
- }
1646
- };
1647
- var DeploymentModel = {
1648
- serializedName: "DeploymentModel",
1649
- type: {
1650
- name: "Composite",
1651
- className: "DeploymentModel",
1652
- modelProperties: {
1653
- format: {
1654
- serializedName: "format",
1655
- type: {
1656
- name: "String"
1657
- }
1658
- },
1659
- name: {
1660
- serializedName: "name",
1661
- type: {
1662
- name: "String"
1663
- }
1664
- },
1665
- version: {
1666
- serializedName: "version",
1667
- type: {
1668
- name: "String"
1669
- }
1670
- }
1671
- }
1672
- }
1673
- };
1674
- var DeploymentScaleSettings = {
1675
- serializedName: "DeploymentScaleSettings",
1676
- type: {
1677
- name: "Composite",
1678
- className: "DeploymentScaleSettings",
1679
- modelProperties: {
1680
- scaleType: {
1681
- serializedName: "scaleType",
1682
- type: {
1683
- name: "String"
1684
- }
1685
- },
1686
- capacity: {
1687
- serializedName: "capacity",
1688
- type: {
1689
- name: "Number"
1690
- }
1691
- }
1692
- }
1693
- }
1694
- };
1695
- var DeploymentProperties = {
1696
- serializedName: "DeploymentProperties",
1697
- type: {
1698
- name: "Composite",
1699
- className: "DeploymentProperties",
1700
- modelProperties: {
1701
- provisioningState: {
1702
- readOnly: true,
1703
- serializedName: "provisioningState",
1704
- type: {
1705
- name: "String"
1706
- }
1707
- },
1708
- model: {
1709
- serializedName: "model",
1710
- type: {
1711
- name: "Composite",
1712
- className: "DeploymentModel"
1713
- }
1714
- },
1715
- scaleSettings: {
1716
- serializedName: "scaleSettings",
1717
- type: {
1718
- name: "Composite",
1719
- className: "DeploymentScaleSettings"
1720
- }
1721
- }
1722
- }
1723
- }
1724
- };
1725
- var ProxyResource = {
1726
- serializedName: "ProxyResource",
1727
- type: {
1728
- name: "Composite",
1729
- className: "ProxyResource",
1730
- modelProperties: __assign({}, Resource.type.modelProperties)
1731
- }
1732
- };
1733
- var Deployment = {
1734
- serializedName: "Deployment",
1735
- type: {
1736
- name: "Composite",
1737
- className: "Deployment",
1738
- modelProperties: __assign(__assign({}, ProxyResource.type.modelProperties), { systemData: {
1739
- readOnly: true,
1740
- serializedName: "systemData",
1741
- type: {
1742
- name: "Composite",
1743
- className: "SystemData"
1744
- }
1745
- }, etag: {
1746
- readOnly: true,
1747
- serializedName: "etag",
1748
- type: {
1749
- name: "String"
1750
- }
1751
- }, properties: {
1752
- serializedName: "properties",
1753
- type: {
1754
- name: "Composite",
1755
- className: "DeploymentProperties"
1756
- }
1757
- } })
1758
- }
1759
- };
1760
- var CommitmentQuota = {
1761
- serializedName: "CommitmentQuota",
1762
- type: {
1763
- name: "Composite",
1764
- className: "CommitmentQuota",
1765
- modelProperties: {
1766
- quantity: {
1767
- serializedName: "quantity",
1768
- type: {
1769
- name: "Number"
1770
- }
1771
- },
1772
- unit: {
1773
- serializedName: "unit",
1774
- type: {
1775
- name: "String"
1776
- }
1777
- }
1778
- }
1779
- }
1780
- };
1781
- var CommitmentCost = {
1782
- serializedName: "CommitmentCost",
1783
- type: {
1784
- name: "Composite",
1785
- className: "CommitmentCost",
1786
- modelProperties: {
1787
- commitmentMeterId: {
1788
- serializedName: "commitmentMeterId",
1789
- type: {
1790
- name: "String"
1791
- }
1792
- },
1793
- overageMeterId: {
1794
- serializedName: "overageMeterId",
1795
- type: {
1796
- name: "String"
1797
- }
1798
- }
1799
- }
1800
- }
1801
- };
1802
- var CommitmentTier = {
1803
- serializedName: "CommitmentTier",
1804
- type: {
1805
- name: "Composite",
1806
- className: "CommitmentTier",
1807
- modelProperties: {
1808
- kind: {
1809
- serializedName: "kind",
1810
- type: {
1811
- name: "String"
1812
- }
1813
- },
1814
- skuName: {
1815
- serializedName: "skuName",
1816
- type: {
1817
- name: "String"
1818
- }
1819
- },
1820
- hostingModel: {
1821
- serializedName: "hostingModel",
1822
- type: {
1823
- name: "String"
1824
- }
1825
- },
1826
- planType: {
1827
- serializedName: "planType",
1828
- type: {
1829
- name: "String"
1830
- }
1831
- },
1832
- tier: {
1833
- serializedName: "tier",
1834
- type: {
1835
- name: "String"
1836
- }
1837
- },
1838
- maxCount: {
1839
- serializedName: "maxCount",
1840
- type: {
1841
- name: "Number"
1842
- }
1843
- },
1844
- quota: {
1845
- serializedName: "quota",
1846
- type: {
1847
- name: "Composite",
1848
- className: "CommitmentQuota"
1849
- }
1850
- },
1851
- cost: {
1852
- serializedName: "cost",
1853
- type: {
1854
- name: "Composite",
1855
- className: "CommitmentCost"
1856
- }
1857
- }
1858
- }
1859
- }
1860
- };
1861
- var CommitmentPeriod = {
1862
- serializedName: "CommitmentPeriod",
1863
- type: {
1864
- name: "Composite",
1865
- className: "CommitmentPeriod",
1866
- modelProperties: {
1867
- tier: {
1868
- serializedName: "tier",
1869
- type: {
1870
- name: "String"
1871
- }
1872
- },
1873
- count: {
1874
- serializedName: "count",
1875
- type: {
1876
- name: "Number"
1877
- }
1878
- },
1879
- quota: {
1880
- readOnly: true,
1881
- serializedName: "quota",
1882
- type: {
1883
- name: "Composite",
1884
- className: "CommitmentQuota"
1885
- }
1886
- },
1887
- startDate: {
1888
- readOnly: true,
1889
- serializedName: "startDate",
1890
- type: {
1891
- name: "String"
1892
- }
1893
- },
1894
- endDate: {
1895
- readOnly: true,
1896
- serializedName: "endDate",
1897
- type: {
1898
- name: "String"
1899
- }
1900
- }
1901
- }
1902
- }
1903
- };
1904
- var CommitmentPlanProperties = {
1905
- serializedName: "CommitmentPlanProperties",
1906
- type: {
1907
- name: "Composite",
1908
- className: "CommitmentPlanProperties",
1909
- modelProperties: {
1910
- hostingModel: {
1911
- serializedName: "hostingModel",
1912
- type: {
1913
- name: "String"
1914
- }
1915
- },
1916
- planType: {
1917
- serializedName: "planType",
1918
- type: {
1919
- name: "String"
1920
- }
1921
- },
1922
- current: {
1923
- serializedName: "current",
1924
- type: {
1925
- name: "Composite",
1926
- className: "CommitmentPeriod"
1927
- }
1928
- },
1929
- autoRenew: {
1930
- serializedName: "autoRenew",
1931
- type: {
1932
- name: "Boolean"
1933
- }
1934
- },
1935
- next: {
1936
- serializedName: "next",
1937
- type: {
1938
- name: "Composite",
1939
- className: "CommitmentPeriod"
1940
- }
1941
- },
1942
- last: {
1943
- readOnly: true,
1944
- serializedName: "last",
1945
- type: {
1946
- name: "Composite",
1947
- className: "CommitmentPeriod"
1948
- }
1949
- }
1950
- }
1951
- }
1952
- };
1953
- var CommitmentPlan = {
1954
- serializedName: "CommitmentPlan",
1955
- type: {
1956
- name: "Composite",
1957
- className: "CommitmentPlan",
1958
- modelProperties: __assign(__assign({}, ProxyResource.type.modelProperties), { systemData: {
1959
- readOnly: true,
1960
- serializedName: "systemData",
1961
- type: {
1962
- name: "Composite",
1963
- className: "SystemData"
1964
- }
1965
- }, etag: {
1966
- readOnly: true,
1967
- serializedName: "etag",
1968
- type: {
1969
- name: "String"
1970
- }
1971
- }, properties: {
1972
- serializedName: "properties",
1973
- type: {
1974
- name: "Composite",
1975
- className: "CommitmentPlanProperties"
1976
- }
1977
- } })
1978
- }
1979
- };
1980
- var TrackedResource = {
1981
- serializedName: "TrackedResource",
1982
- type: {
1983
- name: "Composite",
1984
- className: "TrackedResource",
1985
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
1986
- serializedName: "tags",
1987
- type: {
1988
- name: "Dictionary",
1989
- value: {
1990
- type: {
1991
- name: "String"
1992
- }
1993
- }
1994
- }
1995
- }, location: {
1996
- required: true,
1997
- serializedName: "location",
1998
- type: {
1999
- name: "String"
2000
- }
2001
- } })
2002
- }
2003
- };
2004
- var ErrorAdditionalInfo = {
2005
- serializedName: "ErrorAdditionalInfo",
2006
- type: {
2007
- name: "Composite",
2008
- className: "ErrorAdditionalInfo",
2009
- modelProperties: {
2010
- type: {
2011
- readOnly: true,
2012
- serializedName: "type",
2013
- type: {
2014
- name: "String"
2015
- }
2016
- },
2017
- info: {
2018
- readOnly: true,
2019
- serializedName: "info",
2020
- type: {
2021
- name: "Object"
2022
- }
2023
- }
2024
- }
2025
- }
2026
- };
2027
- var ErrorDetail = {
2028
- serializedName: "ErrorDetail",
2029
- type: {
2030
- name: "Composite",
2031
- className: "ErrorDetail",
2032
- modelProperties: {
2033
- code: {
2034
- readOnly: true,
2035
- serializedName: "code",
2036
- type: {
2037
- name: "String"
2038
- }
2039
- },
2040
- message: {
2041
- readOnly: true,
2042
- serializedName: "message",
2043
- type: {
2044
- name: "String"
2045
- }
2046
- },
2047
- target: {
2048
- readOnly: true,
2049
- serializedName: "target",
2050
- type: {
2051
- name: "String"
2052
- }
2053
- },
2054
- details: {
2055
- readOnly: true,
2056
- serializedName: "details",
2057
- type: {
2058
- name: "Sequence",
2059
- element: {
2060
- type: {
2061
- name: "Composite",
2062
- className: "ErrorDetail"
2063
- }
2064
- }
2065
- }
2066
- },
2067
- additionalInfo: {
2068
- readOnly: true,
2069
- serializedName: "additionalInfo",
2070
- type: {
2071
- name: "Sequence",
2072
- element: {
2073
- type: {
2074
- name: "Composite",
2075
- className: "ErrorAdditionalInfo"
2076
- }
2077
- }
2078
- }
2079
- }
2080
- }
2081
- }
2082
- };
2083
- var ErrorResponse = {
2084
- serializedName: "ErrorResponse",
2085
- type: {
2086
- name: "Composite",
2087
- className: "ErrorResponse",
2088
- modelProperties: {
2089
- error: {
2090
- serializedName: "error",
2091
- type: {
2092
- name: "Composite",
2093
- className: "ErrorDetail"
2094
- }
2095
- }
2096
- }
2097
- }
2098
- };
2099
- var OperationDisplay = {
2100
- serializedName: "Operation_display",
2101
- type: {
2102
- name: "Composite",
2103
- className: "OperationDisplay",
2104
- modelProperties: {
2105
- provider: {
2106
- readOnly: true,
2107
- serializedName: "provider",
2108
- type: {
2109
- name: "String"
2110
- }
2111
- },
2112
- resource: {
2113
- readOnly: true,
2114
- serializedName: "resource",
2115
- type: {
2116
- name: "String"
2117
- }
2118
- },
2119
- operation: {
2120
- readOnly: true,
2121
- serializedName: "operation",
2122
- type: {
2123
- name: "String"
2124
- }
2125
- },
2126
- description: {
2127
- readOnly: true,
2128
- serializedName: "description",
2129
- type: {
2130
- name: "String"
2131
- }
2132
- }
2133
- }
2134
- }
2135
- };
2136
- var Operation = {
2137
- serializedName: "Operation",
2138
- type: {
2139
- name: "Composite",
2140
- className: "Operation",
2141
- modelProperties: {
2142
- name: {
2143
- readOnly: true,
2144
- serializedName: "name",
2145
- type: {
2146
- name: "String"
2147
- }
2148
- },
2149
- isDataAction: {
2150
- readOnly: true,
2151
- serializedName: "isDataAction",
2152
- type: {
2153
- name: "Boolean"
2154
- }
2155
- },
2156
- display: {
2157
- serializedName: "display",
2158
- type: {
2159
- name: "Composite",
2160
- className: "OperationDisplay"
2161
- }
2162
- },
2163
- origin: {
2164
- readOnly: true,
2165
- serializedName: "origin",
2166
- type: {
2167
- name: "String"
2168
- }
2169
- },
2170
- actionType: {
2171
- readOnly: true,
2172
- serializedName: "actionType",
2173
- type: {
2174
- name: "String"
2175
- }
2176
- }
2177
- }
2178
- }
2179
- };
2180
- var AccountListResult = {
2181
- serializedName: "AccountListResult",
2182
- type: {
2183
- name: "Composite",
2184
- className: "AccountListResult",
2185
- modelProperties: {
2186
- nextLink: {
2187
- serializedName: "nextLink",
2188
- type: {
2189
- name: "String"
2190
- }
2191
- },
2192
- value: {
2193
- readOnly: true,
2194
- serializedName: "",
2195
- type: {
2196
- name: "Sequence",
2197
- element: {
2198
- type: {
2199
- name: "Composite",
2200
- className: "Account"
2201
- }
2202
- }
2203
- }
2204
- }
2205
- }
2206
- }
2207
- };
2208
- var ResourceSkuListResult = {
2209
- serializedName: "ResourceSkuListResult",
2210
- type: {
2211
- name: "Composite",
2212
- className: "ResourceSkuListResult",
2213
- modelProperties: {
2214
- value: {
2215
- required: true,
2216
- serializedName: "",
2217
- type: {
2218
- name: "Sequence",
2219
- element: {
2220
- type: {
2221
- name: "Composite",
2222
- className: "ResourceSku"
2223
- }
2224
- }
2225
- }
2226
- },
2227
- nextLink: {
2228
- serializedName: "nextLink",
2229
- type: {
2230
- name: "String"
2231
- }
2232
- }
2233
- }
2234
- }
2235
- };
2236
- var OperationListResult = {
2237
- serializedName: "OperationListResult",
2238
- type: {
2239
- name: "Composite",
2240
- className: "OperationListResult",
2241
- modelProperties: {
2242
- value: {
2243
- readOnly: true,
2244
- serializedName: "",
2245
- type: {
2246
- name: "Sequence",
2247
- element: {
2248
- type: {
2249
- name: "Composite",
2250
- className: "Operation"
2251
- }
2252
- }
2253
- }
2254
- },
2255
- nextLink: {
2256
- readOnly: true,
2257
- serializedName: "nextLink",
2258
- type: {
2259
- name: "String"
2260
- }
2261
- }
2262
- }
2263
- }
2264
- };
2265
- var CommitmentTierListResult = {
2266
- serializedName: "CommitmentTierListResult",
2267
- type: {
2268
- name: "Composite",
2269
- className: "CommitmentTierListResult",
2270
- modelProperties: {
2271
- nextLink: {
2272
- serializedName: "nextLink",
2273
- type: {
2274
- name: "String"
2275
- }
2276
- },
2277
- value: {
2278
- readOnly: true,
2279
- serializedName: "",
2280
- type: {
2281
- name: "Sequence",
2282
- element: {
2283
- type: {
2284
- name: "Composite",
2285
- className: "CommitmentTier"
2286
- }
2287
- }
2288
- }
2289
- }
2290
- }
2291
- }
2292
- };
2293
- var DeploymentListResult = {
2294
- serializedName: "DeploymentListResult",
2295
- type: {
2296
- name: "Composite",
2297
- className: "DeploymentListResult",
2298
- modelProperties: {
2299
- nextLink: {
2300
- serializedName: "nextLink",
2301
- type: {
2302
- name: "String"
2303
- }
2304
- },
2305
- value: {
2306
- readOnly: true,
2307
- serializedName: "",
2308
- type: {
2309
- name: "Sequence",
2310
- element: {
2311
- type: {
2312
- name: "Composite",
2313
- className: "Deployment"
2314
- }
2315
- }
2316
- }
2317
- }
2318
- }
2319
- }
2320
- };
2321
- var CommitmentPlanListResult = {
2322
- serializedName: "CommitmentPlanListResult",
2323
- type: {
2324
- name: "Composite",
2325
- className: "CommitmentPlanListResult",
2326
- modelProperties: {
2327
- nextLink: {
2328
- serializedName: "nextLink",
2329
- type: {
2330
- name: "String"
2331
- }
2332
- },
2333
- value: {
2334
- readOnly: true,
2335
- serializedName: "",
2336
- type: {
2337
- name: "Sequence",
2338
- element: {
2339
- type: {
2340
- name: "Composite",
2341
- className: "CommitmentPlan"
2342
- }
2343
- }
2344
- }
2345
- }
2346
- }
2347
- }
2348
- };
2349
-
2350
- var Mappers = /*#__PURE__*/Object.freeze({
2351
- __proto__: null,
2352
- CloudError: CloudError,
2353
- BaseResource: BaseResource,
2354
- Sku: Sku,
2355
- UserAssignedIdentity: UserAssignedIdentity,
2356
- Identity: Identity,
2357
- SystemData: SystemData,
2358
- SkuCapability: SkuCapability,
2359
- SkuChangeInfo: SkuChangeInfo,
2360
- IpRule: IpRule,
2361
- VirtualNetworkRule: VirtualNetworkRule,
2362
- NetworkRuleSet: NetworkRuleSet,
2363
- KeyVaultProperties: KeyVaultProperties,
2364
- Encryption: Encryption,
2365
- UserOwnedStorage: UserOwnedStorage,
2366
- PrivateEndpoint: PrivateEndpoint,
2367
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2368
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
2369
- Resource: Resource,
2370
- AzureEntityResource: AzureEntityResource,
2371
- PrivateEndpointConnection: PrivateEndpointConnection,
2372
- ApiProperties: ApiProperties,
2373
- RequestMatchPattern: RequestMatchPattern,
2374
- ThrottlingRule: ThrottlingRule,
2375
- CallRateLimit: CallRateLimit,
2376
- QuotaLimit: QuotaLimit,
2377
- AccountProperties: AccountProperties,
2378
- Account: Account,
2379
- ApiKeys: ApiKeys,
2380
- RegenerateKeyParameters: RegenerateKeyParameters,
2381
- AccountSku: AccountSku,
2382
- AccountSkuListResult: AccountSkuListResult,
2383
- MetricName: MetricName,
2384
- Usage: Usage,
2385
- UsageListResult: UsageListResult,
2386
- CheckSkuAvailabilityParameter: CheckSkuAvailabilityParameter,
2387
- SkuAvailability: SkuAvailability,
2388
- SkuAvailabilityListResult: SkuAvailabilityListResult,
2389
- CheckDomainAvailabilityParameter: CheckDomainAvailabilityParameter,
2390
- DomainAvailability: DomainAvailability,
2391
- ResourceSkuRestrictionInfo: ResourceSkuRestrictionInfo,
2392
- ResourceSkuRestrictions: ResourceSkuRestrictions,
2393
- ResourceSku: ResourceSku,
2394
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
2395
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
2396
- PrivateLinkResource: PrivateLinkResource,
2397
- PrivateLinkResourceListResult: PrivateLinkResourceListResult,
2398
- DeploymentModel: DeploymentModel,
2399
- DeploymentScaleSettings: DeploymentScaleSettings,
2400
- DeploymentProperties: DeploymentProperties,
2401
- ProxyResource: ProxyResource,
2402
- Deployment: Deployment,
2403
- CommitmentQuota: CommitmentQuota,
2404
- CommitmentCost: CommitmentCost,
2405
- CommitmentTier: CommitmentTier,
2406
- CommitmentPeriod: CommitmentPeriod,
2407
- CommitmentPlanProperties: CommitmentPlanProperties,
2408
- CommitmentPlan: CommitmentPlan,
2409
- TrackedResource: TrackedResource,
2410
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2411
- ErrorDetail: ErrorDetail,
2412
- ErrorResponse: ErrorResponse,
2413
- OperationDisplay: OperationDisplay,
2414
- Operation: Operation,
2415
- AccountListResult: AccountListResult,
2416
- ResourceSkuListResult: ResourceSkuListResult,
2417
- OperationListResult: OperationListResult,
2418
- CommitmentTierListResult: CommitmentTierListResult,
2419
- DeploymentListResult: DeploymentListResult,
2420
- CommitmentPlanListResult: CommitmentPlanListResult
2421
- });
2422
-
2423
- /*
2424
- * Copyright (c) Microsoft Corporation.
2425
- * Licensed under the MIT License.
2426
- *
2427
- * Code generated by Microsoft (R) AutoRest Code Generator.
2428
- * Changes may cause incorrect behavior and will be lost if the code is
2429
- * regenerated.
2430
- */
2431
- var acceptLanguage = {
2432
- parameterPath: "acceptLanguage",
2433
- mapper: {
2434
- serializedName: "accept-language",
2435
- defaultValue: 'en-US',
2436
- type: {
2437
- name: "String"
2438
- }
2439
- }
2440
- };
2441
- var accountName = {
2442
- parameterPath: "accountName",
2443
- mapper: {
2444
- required: true,
2445
- serializedName: "accountName",
2446
- constraints: {
2447
- MaxLength: 64,
2448
- MinLength: 2,
2449
- Pattern: /^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/
2450
- },
2451
- type: {
2452
- name: "String"
2453
- }
2454
- }
2455
- };
2456
- var apiVersion = {
2457
- parameterPath: "apiVersion",
2458
- mapper: {
2459
- required: true,
2460
- serializedName: "api-version",
2461
- constraints: {
2462
- MinLength: 1
2463
- },
2464
- type: {
2465
- name: "String"
2466
- }
2467
- }
2468
- };
2469
- var commitmentPlanName = {
2470
- parameterPath: "commitmentPlanName",
2471
- mapper: {
2472
- required: true,
2473
- serializedName: "commitmentPlanName",
2474
- type: {
2475
- name: "String"
2476
- }
2477
- }
2478
- };
2479
- var deploymentName = {
2480
- parameterPath: "deploymentName",
2481
- mapper: {
2482
- required: true,
2483
- serializedName: "deploymentName",
2484
- type: {
2485
- name: "String"
2486
- }
2487
- }
2488
- };
2489
- var filter = {
2490
- parameterPath: [
2491
- "options",
2492
- "filter"
2493
- ],
2494
- mapper: {
2495
- serializedName: "$filter",
2496
- type: {
2497
- name: "String"
2498
- }
2499
- }
2500
- };
2501
- var location = {
2502
- parameterPath: "location",
2503
- mapper: {
2504
- required: true,
2505
- serializedName: "location",
2506
- type: {
2507
- name: "String"
2508
- }
2509
- }
2510
- };
2511
- var nextPageLink = {
2512
- parameterPath: "nextPageLink",
2513
- mapper: {
2514
- required: true,
2515
- serializedName: "nextLink",
2516
- type: {
2517
- name: "String"
2518
- }
2519
- },
2520
- skipEncoding: true
2521
- };
2522
- var privateEndpointConnectionName = {
2523
- parameterPath: "privateEndpointConnectionName",
2524
- mapper: {
2525
- required: true,
2526
- serializedName: "privateEndpointConnectionName",
2527
- type: {
2528
- name: "String"
2529
- }
2530
- }
2531
- };
2532
- var resourceGroupName = {
2533
- parameterPath: "resourceGroupName",
2534
- mapper: {
2535
- required: true,
2536
- serializedName: "resourceGroupName",
2537
- constraints: {
2538
- MaxLength: 90,
2539
- MinLength: 1
2540
- },
2541
- type: {
2542
- name: "String"
2543
- }
2544
- }
2545
- };
2546
- var subscriptionId = {
2547
- parameterPath: "subscriptionId",
2548
- mapper: {
2549
- required: true,
2550
- serializedName: "subscriptionId",
2551
- constraints: {
2552
- MinLength: 1
2553
- },
2554
- type: {
2555
- name: "String"
2556
- }
2557
- }
2558
- };
2559
-
2560
- /*
2561
- * Copyright (c) Microsoft Corporation.
2562
- * Licensed under the MIT License.
2563
- *
2564
- * Code generated by Microsoft (R) AutoRest Code Generator.
2565
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2566
- */
2567
-
2568
- var Mappers$1 = /*#__PURE__*/Object.freeze({
2569
- __proto__: null,
2570
- Account: Account,
2571
- AccountListResult: AccountListResult,
2572
- AccountProperties: AccountProperties,
2573
- AccountSku: AccountSku,
2574
- AccountSkuListResult: AccountSkuListResult,
2575
- ApiKeys: ApiKeys,
2576
- ApiProperties: ApiProperties,
2577
- AzureEntityResource: AzureEntityResource,
2578
- BaseResource: BaseResource,
2579
- CallRateLimit: CallRateLimit,
2580
- CommitmentPeriod: CommitmentPeriod,
2581
- CommitmentPlan: CommitmentPlan,
2582
- CommitmentPlanProperties: CommitmentPlanProperties,
2583
- CommitmentQuota: CommitmentQuota,
2584
- Deployment: Deployment,
2585
- DeploymentModel: DeploymentModel,
2586
- DeploymentProperties: DeploymentProperties,
2587
- DeploymentScaleSettings: DeploymentScaleSettings,
2588
- Encryption: Encryption,
2589
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2590
- ErrorDetail: ErrorDetail,
2591
- ErrorResponse: ErrorResponse,
2592
- Identity: Identity,
2593
- IpRule: IpRule,
2594
- KeyVaultProperties: KeyVaultProperties,
2595
- MetricName: MetricName,
2596
- NetworkRuleSet: NetworkRuleSet,
2597
- PrivateEndpoint: PrivateEndpoint,
2598
- PrivateEndpointConnection: PrivateEndpointConnection,
2599
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
2600
- PrivateLinkResource: PrivateLinkResource,
2601
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
2602
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2603
- ProxyResource: ProxyResource,
2604
- QuotaLimit: QuotaLimit,
2605
- RegenerateKeyParameters: RegenerateKeyParameters,
2606
- RequestMatchPattern: RequestMatchPattern,
2607
- Resource: Resource,
2608
- Sku: Sku,
2609
- SkuCapability: SkuCapability,
2610
- SkuChangeInfo: SkuChangeInfo,
2611
- SystemData: SystemData,
2612
- ThrottlingRule: ThrottlingRule,
2613
- TrackedResource: TrackedResource,
2614
- Usage: Usage,
2615
- UsageListResult: UsageListResult,
2616
- UserAssignedIdentity: UserAssignedIdentity,
2617
- UserOwnedStorage: UserOwnedStorage,
2618
- VirtualNetworkRule: VirtualNetworkRule
2619
- });
2620
-
2621
- /*
2622
- * Copyright (c) Microsoft Corporation.
2623
- * Licensed under the MIT License.
2624
- *
2625
- * Code generated by Microsoft (R) AutoRest Code Generator.
2626
- * Changes may cause incorrect behavior and will be lost if the code is
2627
- * regenerated.
2628
- */
2629
- /** Class representing a Accounts. */
2630
- var Accounts = /** @class */ (function () {
2631
- /**
2632
- * Create a Accounts.
2633
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
2634
- */
2635
- function Accounts(client) {
2636
- this.client = client;
2637
- }
2638
- /**
2639
- * Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the
2640
- * keys for developer to access intelligent APIs. It's also the resource type for billing.
2641
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2642
- * @param accountName The name of Cognitive Services account.
2643
- * @param account The parameters to provide for the created account.
2644
- * @param [options] The optional parameters
2645
- * @returns Promise<Models.AccountsCreateResponse>
2646
- */
2647
- Accounts.prototype.create = function (resourceGroupName, accountName, account, options) {
2648
- return this.beginCreate(resourceGroupName, accountName, account, options)
2649
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2650
- };
2651
- /**
2652
- * Updates a Cognitive Services account
2653
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2654
- * @param accountName The name of Cognitive Services account.
2655
- * @param account The parameters to provide for the created account.
2656
- * @param [options] The optional parameters
2657
- * @returns Promise<Models.AccountsUpdateResponse>
2658
- */
2659
- Accounts.prototype.update = function (resourceGroupName, accountName, account, options) {
2660
- return this.beginUpdate(resourceGroupName, accountName, account, options)
2661
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2662
- };
2663
- /**
2664
- * Deletes a Cognitive Services account from the resource group.
2665
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2666
- * @param accountName The name of Cognitive Services account.
2667
- * @param [options] The optional parameters
2668
- * @returns Promise<msRest.RestResponse>
2669
- */
2670
- Accounts.prototype.deleteMethod = function (resourceGroupName, accountName, options) {
2671
- return this.beginDeleteMethod(resourceGroupName, accountName, options)
2672
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2673
- };
2674
- Accounts.prototype.get = function (resourceGroupName, accountName, options, callback) {
2675
- return this.client.sendOperationRequest({
2676
- resourceGroupName: resourceGroupName,
2677
- accountName: accountName,
2678
- options: options
2679
- }, getOperationSpec, callback);
2680
- };
2681
- Accounts.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
2682
- return this.client.sendOperationRequest({
2683
- resourceGroupName: resourceGroupName,
2684
- options: options
2685
- }, listByResourceGroupOperationSpec, callback);
2686
- };
2687
- Accounts.prototype.list = function (options, callback) {
2688
- return this.client.sendOperationRequest({
2689
- options: options
2690
- }, listOperationSpec, callback);
2691
- };
2692
- Accounts.prototype.listKeys = function (resourceGroupName, accountName, options, callback) {
2693
- return this.client.sendOperationRequest({
2694
- resourceGroupName: resourceGroupName,
2695
- accountName: accountName,
2696
- options: options
2697
- }, listKeysOperationSpec, callback);
2698
- };
2699
- Accounts.prototype.regenerateKey = function (resourceGroupName, accountName, keyName, options, callback) {
2700
- return this.client.sendOperationRequest({
2701
- resourceGroupName: resourceGroupName,
2702
- accountName: accountName,
2703
- keyName: keyName,
2704
- options: options
2705
- }, regenerateKeyOperationSpec, callback);
2706
- };
2707
- Accounts.prototype.listSkus = function (resourceGroupName, accountName, options, callback) {
2708
- return this.client.sendOperationRequest({
2709
- resourceGroupName: resourceGroupName,
2710
- accountName: accountName,
2711
- options: options
2712
- }, listSkusOperationSpec, callback);
2713
- };
2714
- Accounts.prototype.listUsages = function (resourceGroupName, accountName, options, callback) {
2715
- return this.client.sendOperationRequest({
2716
- resourceGroupName: resourceGroupName,
2717
- accountName: accountName,
2718
- options: options
2719
- }, listUsagesOperationSpec, callback);
2720
- };
2721
- /**
2722
- * Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the
2723
- * keys for developer to access intelligent APIs. It's also the resource type for billing.
2724
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2725
- * @param accountName The name of Cognitive Services account.
2726
- * @param account The parameters to provide for the created account.
2727
- * @param [options] The optional parameters
2728
- * @returns Promise<msRestAzure.LROPoller>
2729
- */
2730
- Accounts.prototype.beginCreate = function (resourceGroupName, accountName, account, options) {
2731
- return this.client.sendLRORequest({
2732
- resourceGroupName: resourceGroupName,
2733
- accountName: accountName,
2734
- account: account,
2735
- options: options
2736
- }, beginCreateOperationSpec, options);
2737
- };
2738
- /**
2739
- * Updates a Cognitive Services account
2740
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2741
- * @param accountName The name of Cognitive Services account.
2742
- * @param account The parameters to provide for the created account.
2743
- * @param [options] The optional parameters
2744
- * @returns Promise<msRestAzure.LROPoller>
2745
- */
2746
- Accounts.prototype.beginUpdate = function (resourceGroupName, accountName, account, options) {
2747
- return this.client.sendLRORequest({
2748
- resourceGroupName: resourceGroupName,
2749
- accountName: accountName,
2750
- account: account,
2751
- options: options
2752
- }, beginUpdateOperationSpec, options);
2753
- };
2754
- /**
2755
- * Deletes a Cognitive Services account from the resource group.
2756
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2757
- * @param accountName The name of Cognitive Services account.
2758
- * @param [options] The optional parameters
2759
- * @returns Promise<msRestAzure.LROPoller>
2760
- */
2761
- Accounts.prototype.beginDeleteMethod = function (resourceGroupName, accountName, options) {
2762
- return this.client.sendLRORequest({
2763
- resourceGroupName: resourceGroupName,
2764
- accountName: accountName,
2765
- options: options
2766
- }, beginDeleteMethodOperationSpec, options);
2767
- };
2768
- Accounts.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
2769
- return this.client.sendOperationRequest({
2770
- nextPageLink: nextPageLink,
2771
- options: options
2772
- }, listByResourceGroupNextOperationSpec, callback);
2773
- };
2774
- Accounts.prototype.listNext = function (nextPageLink, options, callback) {
2775
- return this.client.sendOperationRequest({
2776
- nextPageLink: nextPageLink,
2777
- options: options
2778
- }, listNextOperationSpec, callback);
2779
- };
2780
- return Accounts;
2781
- }());
2782
- // Operation Specifications
2783
- var serializer = new msRest.Serializer(Mappers$1);
2784
- var getOperationSpec = {
2785
- httpMethod: "GET",
2786
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
2787
- urlParameters: [
2788
- resourceGroupName,
2789
- accountName,
2790
- subscriptionId
2791
- ],
2792
- queryParameters: [
2793
- apiVersion
2794
- ],
2795
- headerParameters: [
2796
- acceptLanguage
2797
- ],
2798
- responses: {
2799
- 200: {
2800
- bodyMapper: Account
2801
- },
2802
- default: {
2803
- bodyMapper: ErrorResponse
2804
- }
2805
- },
2806
- serializer: serializer
2807
- };
2808
- var listByResourceGroupOperationSpec = {
2809
- httpMethod: "GET",
2810
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",
2811
- urlParameters: [
2812
- resourceGroupName,
2813
- subscriptionId
2814
- ],
2815
- queryParameters: [
2816
- apiVersion
2817
- ],
2818
- headerParameters: [
2819
- acceptLanguage
2820
- ],
2821
- responses: {
2822
- 200: {
2823
- bodyMapper: AccountListResult
2824
- },
2825
- default: {
2826
- bodyMapper: ErrorResponse
2827
- }
2828
- },
2829
- serializer: serializer
2830
- };
2831
- var listOperationSpec = {
2832
- httpMethod: "GET",
2833
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",
2834
- urlParameters: [
2835
- subscriptionId
2836
- ],
2837
- queryParameters: [
2838
- apiVersion
2839
- ],
2840
- headerParameters: [
2841
- acceptLanguage
2842
- ],
2843
- responses: {
2844
- 200: {
2845
- bodyMapper: AccountListResult
2846
- },
2847
- default: {
2848
- bodyMapper: ErrorResponse
2849
- }
2850
- },
2851
- serializer: serializer
2852
- };
2853
- var listKeysOperationSpec = {
2854
- httpMethod: "POST",
2855
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",
2856
- urlParameters: [
2857
- resourceGroupName,
2858
- accountName,
2859
- subscriptionId
2860
- ],
2861
- queryParameters: [
2862
- apiVersion
2863
- ],
2864
- headerParameters: [
2865
- acceptLanguage
2866
- ],
2867
- responses: {
2868
- 200: {
2869
- bodyMapper: ApiKeys
2870
- },
2871
- default: {
2872
- bodyMapper: ErrorResponse
2873
- }
2874
- },
2875
- serializer: serializer
2876
- };
2877
- var regenerateKeyOperationSpec = {
2878
- httpMethod: "POST",
2879
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",
2880
- urlParameters: [
2881
- resourceGroupName,
2882
- accountName,
2883
- subscriptionId
2884
- ],
2885
- queryParameters: [
2886
- apiVersion
2887
- ],
2888
- headerParameters: [
2889
- acceptLanguage
2890
- ],
2891
- requestBody: {
2892
- parameterPath: {
2893
- keyName: "keyName"
2894
- },
2895
- mapper: __assign(__assign({}, RegenerateKeyParameters), { required: true })
2896
- },
2897
- responses: {
2898
- 200: {
2899
- bodyMapper: ApiKeys
2900
- },
2901
- default: {
2902
- bodyMapper: ErrorResponse
2903
- }
2904
- },
2905
- serializer: serializer
2906
- };
2907
- var listSkusOperationSpec = {
2908
- httpMethod: "GET",
2909
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",
2910
- urlParameters: [
2911
- resourceGroupName,
2912
- accountName,
2913
- subscriptionId
2914
- ],
2915
- queryParameters: [
2916
- apiVersion
2917
- ],
2918
- headerParameters: [
2919
- acceptLanguage
2920
- ],
2921
- responses: {
2922
- 200: {
2923
- bodyMapper: AccountSkuListResult
2924
- },
2925
- default: {
2926
- bodyMapper: ErrorResponse
2927
- }
2928
- },
2929
- serializer: serializer
2930
- };
2931
- var listUsagesOperationSpec = {
2932
- httpMethod: "GET",
2933
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",
2934
- urlParameters: [
2935
- resourceGroupName,
2936
- accountName,
2937
- subscriptionId
2938
- ],
2939
- queryParameters: [
2940
- apiVersion,
2941
- filter
2942
- ],
2943
- headerParameters: [
2944
- acceptLanguage
2945
- ],
2946
- responses: {
2947
- 200: {
2948
- bodyMapper: UsageListResult
2949
- },
2950
- default: {
2951
- bodyMapper: ErrorResponse
2952
- }
2953
- },
2954
- serializer: serializer
2955
- };
2956
- var beginCreateOperationSpec = {
2957
- httpMethod: "PUT",
2958
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
2959
- urlParameters: [
2960
- resourceGroupName,
2961
- accountName,
2962
- subscriptionId
2963
- ],
2964
- queryParameters: [
2965
- apiVersion
2966
- ],
2967
- headerParameters: [
2968
- acceptLanguage
2969
- ],
2970
- requestBody: {
2971
- parameterPath: "account",
2972
- mapper: __assign(__assign({}, Account), { required: true })
2973
- },
2974
- responses: {
2975
- 200: {
2976
- bodyMapper: Account
2977
- },
2978
- 201: {
2979
- bodyMapper: Account
2980
- },
2981
- 202: {
2982
- bodyMapper: Account
2983
- },
2984
- default: {
2985
- bodyMapper: ErrorResponse
2986
- }
2987
- },
2988
- serializer: serializer
2989
- };
2990
- var beginUpdateOperationSpec = {
2991
- httpMethod: "PATCH",
2992
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
2993
- urlParameters: [
2994
- resourceGroupName,
2995
- accountName,
2996
- subscriptionId
2997
- ],
2998
- queryParameters: [
2999
- apiVersion
3000
- ],
3001
- headerParameters: [
3002
- acceptLanguage
3003
- ],
3004
- requestBody: {
3005
- parameterPath: "account",
3006
- mapper: __assign(__assign({}, Account), { required: true })
3007
- },
3008
- responses: {
3009
- 200: {
3010
- bodyMapper: Account
3011
- },
3012
- 202: {
3013
- bodyMapper: Account
3014
- },
3015
- default: {
3016
- bodyMapper: ErrorResponse
3017
- }
3018
- },
3019
- serializer: serializer
3020
- };
3021
- var beginDeleteMethodOperationSpec = {
3022
- httpMethod: "DELETE",
3023
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
3024
- urlParameters: [
3025
- resourceGroupName,
3026
- accountName,
3027
- subscriptionId
3028
- ],
3029
- queryParameters: [
3030
- apiVersion
3031
- ],
3032
- headerParameters: [
3033
- acceptLanguage
3034
- ],
3035
- responses: {
3036
- 200: {},
3037
- 202: {},
3038
- 204: {},
3039
- default: {
3040
- bodyMapper: ErrorResponse
3041
- }
3042
- },
3043
- serializer: serializer
3044
- };
3045
- var listByResourceGroupNextOperationSpec = {
3046
- httpMethod: "GET",
3047
- baseUrl: "https://management.azure.com",
3048
- path: "{nextLink}",
3049
- urlParameters: [
3050
- nextPageLink
3051
- ],
3052
- queryParameters: [
3053
- apiVersion
3054
- ],
3055
- headerParameters: [
3056
- acceptLanguage
3057
- ],
3058
- responses: {
3059
- 200: {
3060
- bodyMapper: AccountListResult
3061
- },
3062
- default: {
3063
- bodyMapper: ErrorResponse
3064
- }
3065
- },
3066
- serializer: serializer
3067
- };
3068
- var listNextOperationSpec = {
3069
- httpMethod: "GET",
3070
- baseUrl: "https://management.azure.com",
3071
- path: "{nextLink}",
3072
- urlParameters: [
3073
- nextPageLink
3074
- ],
3075
- queryParameters: [
3076
- apiVersion
3077
- ],
3078
- headerParameters: [
3079
- acceptLanguage
3080
- ],
3081
- responses: {
3082
- 200: {
3083
- bodyMapper: AccountListResult
3084
- },
3085
- default: {
3086
- bodyMapper: ErrorResponse
3087
- }
3088
- },
3089
- serializer: serializer
3090
- };
3091
-
3092
- /*
3093
- * Copyright (c) Microsoft Corporation.
3094
- * Licensed under the MIT License.
3095
- *
3096
- * Code generated by Microsoft (R) AutoRest Code Generator.
3097
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3098
- */
3099
-
3100
- var Mappers$2 = /*#__PURE__*/Object.freeze({
3101
- __proto__: null,
3102
- Account: Account,
3103
- AccountListResult: AccountListResult,
3104
- AccountProperties: AccountProperties,
3105
- ApiProperties: ApiProperties,
3106
- AzureEntityResource: AzureEntityResource,
3107
- BaseResource: BaseResource,
3108
- CallRateLimit: CallRateLimit,
3109
- CommitmentPeriod: CommitmentPeriod,
3110
- CommitmentPlan: CommitmentPlan,
3111
- CommitmentPlanProperties: CommitmentPlanProperties,
3112
- CommitmentQuota: CommitmentQuota,
3113
- Deployment: Deployment,
3114
- DeploymentModel: DeploymentModel,
3115
- DeploymentProperties: DeploymentProperties,
3116
- DeploymentScaleSettings: DeploymentScaleSettings,
3117
- Encryption: Encryption,
3118
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3119
- ErrorDetail: ErrorDetail,
3120
- ErrorResponse: ErrorResponse,
3121
- Identity: Identity,
3122
- IpRule: IpRule,
3123
- KeyVaultProperties: KeyVaultProperties,
3124
- NetworkRuleSet: NetworkRuleSet,
3125
- PrivateEndpoint: PrivateEndpoint,
3126
- PrivateEndpointConnection: PrivateEndpointConnection,
3127
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
3128
- PrivateLinkResource: PrivateLinkResource,
3129
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
3130
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
3131
- ProxyResource: ProxyResource,
3132
- QuotaLimit: QuotaLimit,
3133
- RequestMatchPattern: RequestMatchPattern,
3134
- Resource: Resource,
3135
- Sku: Sku,
3136
- SkuCapability: SkuCapability,
3137
- SkuChangeInfo: SkuChangeInfo,
3138
- SystemData: SystemData,
3139
- ThrottlingRule: ThrottlingRule,
3140
- TrackedResource: TrackedResource,
3141
- UserAssignedIdentity: UserAssignedIdentity,
3142
- UserOwnedStorage: UserOwnedStorage,
3143
- VirtualNetworkRule: VirtualNetworkRule
3144
- });
3145
-
3146
- /*
3147
- * Copyright (c) Microsoft Corporation.
3148
- * Licensed under the MIT License.
3149
- *
3150
- * Code generated by Microsoft (R) AutoRest Code Generator.
3151
- * Changes may cause incorrect behavior and will be lost if the code is
3152
- * regenerated.
3153
- */
3154
- /** Class representing a DeletedAccounts. */
3155
- var DeletedAccounts = /** @class */ (function () {
3156
- /**
3157
- * Create a DeletedAccounts.
3158
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
3159
- */
3160
- function DeletedAccounts(client) {
3161
- this.client = client;
3162
- }
3163
- DeletedAccounts.prototype.get = function (location, resourceGroupName, accountName, options, callback) {
3164
- return this.client.sendOperationRequest({
3165
- location: location,
3166
- resourceGroupName: resourceGroupName,
3167
- accountName: accountName,
3168
- options: options
3169
- }, getOperationSpec$1, callback);
3170
- };
3171
- /**
3172
- * Deletes a Cognitive Services account from the resource group.
3173
- * @param location Resource location.
3174
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3175
- * @param accountName The name of Cognitive Services account.
3176
- * @param [options] The optional parameters
3177
- * @returns Promise<msRest.RestResponse>
3178
- */
3179
- DeletedAccounts.prototype.purge = function (location, resourceGroupName, accountName, options) {
3180
- return this.beginPurge(location, resourceGroupName, accountName, options)
3181
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3182
- };
3183
- DeletedAccounts.prototype.list = function (options, callback) {
3184
- return this.client.sendOperationRequest({
3185
- options: options
3186
- }, listOperationSpec$1, callback);
3187
- };
3188
- /**
3189
- * Deletes a Cognitive Services account from the resource group.
3190
- * @param location Resource location.
3191
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3192
- * @param accountName The name of Cognitive Services account.
3193
- * @param [options] The optional parameters
3194
- * @returns Promise<msRestAzure.LROPoller>
3195
- */
3196
- DeletedAccounts.prototype.beginPurge = function (location, resourceGroupName, accountName, options) {
3197
- return this.client.sendLRORequest({
3198
- location: location,
3199
- resourceGroupName: resourceGroupName,
3200
- accountName: accountName,
3201
- options: options
3202
- }, beginPurgeOperationSpec, options);
3203
- };
3204
- DeletedAccounts.prototype.listNext = function (nextPageLink, options, callback) {
3205
- return this.client.sendOperationRequest({
3206
- nextPageLink: nextPageLink,
3207
- options: options
3208
- }, listNextOperationSpec$1, callback);
3209
- };
3210
- return DeletedAccounts;
3211
- }());
3212
- // Operation Specifications
3213
- var serializer$1 = new msRest.Serializer(Mappers$2);
3214
- var getOperationSpec$1 = {
3215
- httpMethod: "GET",
3216
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}",
3217
- urlParameters: [
3218
- location,
3219
- resourceGroupName,
3220
- accountName,
3221
- subscriptionId
3222
- ],
3223
- queryParameters: [
3224
- apiVersion
3225
- ],
3226
- headerParameters: [
3227
- acceptLanguage
3228
- ],
3229
- responses: {
3230
- 200: {
3231
- bodyMapper: Account
3232
- },
3233
- default: {
3234
- bodyMapper: ErrorResponse
3235
- }
3236
- },
3237
- serializer: serializer$1
3238
- };
3239
- var listOperationSpec$1 = {
3240
- httpMethod: "GET",
3241
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/deletedAccounts",
3242
- urlParameters: [
3243
- subscriptionId
3244
- ],
3245
- queryParameters: [
3246
- apiVersion
3247
- ],
3248
- headerParameters: [
3249
- acceptLanguage
3250
- ],
3251
- responses: {
3252
- 200: {
3253
- bodyMapper: AccountListResult
3254
- },
3255
- default: {
3256
- bodyMapper: ErrorResponse
3257
- }
3258
- },
3259
- serializer: serializer$1
3260
- };
3261
- var beginPurgeOperationSpec = {
3262
- httpMethod: "DELETE",
3263
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}",
3264
- urlParameters: [
3265
- location,
3266
- resourceGroupName,
3267
- accountName,
3268
- subscriptionId
3269
- ],
3270
- queryParameters: [
3271
- apiVersion
3272
- ],
3273
- headerParameters: [
3274
- acceptLanguage
3275
- ],
3276
- responses: {
3277
- 200: {},
3278
- 202: {},
3279
- 204: {},
3280
- default: {
3281
- bodyMapper: ErrorResponse
3282
- }
3283
- },
3284
- serializer: serializer$1
3285
- };
3286
- var listNextOperationSpec$1 = {
3287
- httpMethod: "GET",
3288
- baseUrl: "https://management.azure.com",
3289
- path: "{nextLink}",
3290
- urlParameters: [
3291
- nextPageLink
3292
- ],
3293
- queryParameters: [
3294
- apiVersion
3295
- ],
3296
- headerParameters: [
3297
- acceptLanguage
3298
- ],
3299
- responses: {
3300
- 200: {
3301
- bodyMapper: AccountListResult
3302
- },
3303
- default: {
3304
- bodyMapper: ErrorResponse
3305
- }
3306
- },
3307
- serializer: serializer$1
3308
- };
3309
-
3310
- /*
3311
- * Copyright (c) Microsoft Corporation.
3312
- * Licensed under the MIT License.
3313
- *
3314
- * Code generated by Microsoft (R) AutoRest Code Generator.
3315
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3316
- */
3317
-
3318
- var Mappers$3 = /*#__PURE__*/Object.freeze({
3319
- __proto__: null,
3320
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3321
- ErrorDetail: ErrorDetail,
3322
- ErrorResponse: ErrorResponse,
3323
- ResourceSku: ResourceSku,
3324
- ResourceSkuListResult: ResourceSkuListResult,
3325
- ResourceSkuRestrictionInfo: ResourceSkuRestrictionInfo,
3326
- ResourceSkuRestrictions: ResourceSkuRestrictions
3327
- });
3328
-
3329
- /*
3330
- * Copyright (c) Microsoft Corporation.
3331
- * Licensed under the MIT License.
3332
- *
3333
- * Code generated by Microsoft (R) AutoRest Code Generator.
3334
- * Changes may cause incorrect behavior and will be lost if the code is
3335
- * regenerated.
3336
- */
3337
- /** Class representing a ResourceSkus. */
3338
- var ResourceSkus = /** @class */ (function () {
3339
- /**
3340
- * Create a ResourceSkus.
3341
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
3342
- */
3343
- function ResourceSkus(client) {
3344
- this.client = client;
3345
- }
3346
- ResourceSkus.prototype.list = function (options, callback) {
3347
- return this.client.sendOperationRequest({
3348
- options: options
3349
- }, listOperationSpec$2, callback);
3350
- };
3351
- ResourceSkus.prototype.listNext = function (nextPageLink, options, callback) {
3352
- return this.client.sendOperationRequest({
3353
- nextPageLink: nextPageLink,
3354
- options: options
3355
- }, listNextOperationSpec$2, callback);
3356
- };
3357
- return ResourceSkus;
3358
- }());
3359
- // Operation Specifications
3360
- var serializer$2 = new msRest.Serializer(Mappers$3);
3361
- var listOperationSpec$2 = {
3362
- httpMethod: "GET",
3363
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",
3364
- urlParameters: [
3365
- subscriptionId
3366
- ],
3367
- queryParameters: [
3368
- apiVersion
3369
- ],
3370
- headerParameters: [
3371
- acceptLanguage
3372
- ],
3373
- responses: {
3374
- 200: {
3375
- bodyMapper: ResourceSkuListResult
3376
- },
3377
- default: {
3378
- bodyMapper: ErrorResponse
3379
- }
3380
- },
3381
- serializer: serializer$2
3382
- };
3383
- var listNextOperationSpec$2 = {
3384
- httpMethod: "GET",
3385
- baseUrl: "https://management.azure.com",
3386
- path: "{nextLink}",
3387
- urlParameters: [
3388
- nextPageLink
3389
- ],
3390
- queryParameters: [
3391
- apiVersion
3392
- ],
3393
- headerParameters: [
3394
- acceptLanguage
3395
- ],
3396
- responses: {
3397
- 200: {
3398
- bodyMapper: ResourceSkuListResult
3399
- },
3400
- default: {
3401
- bodyMapper: ErrorResponse
3402
- }
3403
- },
3404
- serializer: serializer$2
3405
- };
3406
-
3407
- /*
3408
- * Copyright (c) Microsoft Corporation.
3409
- * Licensed under the MIT License.
3410
- *
3411
- * Code generated by Microsoft (R) AutoRest Code Generator.
3412
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3413
- */
3414
-
3415
- var Mappers$4 = /*#__PURE__*/Object.freeze({
3416
- __proto__: null,
3417
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3418
- ErrorDetail: ErrorDetail,
3419
- ErrorResponse: ErrorResponse,
3420
- Operation: Operation,
3421
- OperationDisplay: OperationDisplay,
3422
- OperationListResult: OperationListResult
3423
- });
3424
-
3425
- /*
3426
- * Copyright (c) Microsoft Corporation.
3427
- * Licensed under the MIT License.
3428
- *
3429
- * Code generated by Microsoft (R) AutoRest Code Generator.
3430
- * Changes may cause incorrect behavior and will be lost if the code is
3431
- * regenerated.
3432
- */
3433
- /** Class representing a Operations. */
3434
- var Operations = /** @class */ (function () {
3435
- /**
3436
- * Create a Operations.
3437
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
3438
- */
3439
- function Operations(client) {
3440
- this.client = client;
3441
- }
3442
- Operations.prototype.list = function (options, callback) {
3443
- return this.client.sendOperationRequest({
3444
- options: options
3445
- }, listOperationSpec$3, callback);
3446
- };
3447
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
3448
- return this.client.sendOperationRequest({
3449
- nextPageLink: nextPageLink,
3450
- options: options
3451
- }, listNextOperationSpec$3, callback);
3452
- };
3453
- return Operations;
3454
- }());
3455
- // Operation Specifications
3456
- var serializer$3 = new msRest.Serializer(Mappers$4);
3457
- var listOperationSpec$3 = {
3458
- httpMethod: "GET",
3459
- path: "providers/Microsoft.CognitiveServices/operations",
3460
- queryParameters: [
3461
- apiVersion
3462
- ],
3463
- headerParameters: [
3464
- acceptLanguage
3465
- ],
3466
- responses: {
3467
- 200: {
3468
- bodyMapper: OperationListResult
3469
- },
3470
- default: {
3471
- bodyMapper: ErrorResponse
3472
- }
3473
- },
3474
- serializer: serializer$3
3475
- };
3476
- var listNextOperationSpec$3 = {
3477
- httpMethod: "GET",
3478
- baseUrl: "https://management.azure.com",
3479
- path: "{nextLink}",
3480
- urlParameters: [
3481
- nextPageLink
3482
- ],
3483
- queryParameters: [
3484
- apiVersion
3485
- ],
3486
- headerParameters: [
3487
- acceptLanguage
3488
- ],
3489
- responses: {
3490
- 200: {
3491
- bodyMapper: OperationListResult
3492
- },
3493
- default: {
3494
- bodyMapper: ErrorResponse
3495
- }
3496
- },
3497
- serializer: serializer$3
3498
- };
3499
-
3500
- /*
3501
- * Copyright (c) Microsoft Corporation.
3502
- * Licensed under the MIT License.
3503
- *
3504
- * Code generated by Microsoft (R) AutoRest Code Generator.
3505
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3506
- */
3507
-
3508
- var Mappers$5 = /*#__PURE__*/Object.freeze({
3509
- __proto__: null,
3510
- CommitmentCost: CommitmentCost,
3511
- CommitmentQuota: CommitmentQuota,
3512
- CommitmentTier: CommitmentTier,
3513
- CommitmentTierListResult: CommitmentTierListResult,
3514
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3515
- ErrorDetail: ErrorDetail,
3516
- ErrorResponse: ErrorResponse
3517
- });
3518
-
3519
- /*
3520
- * Copyright (c) Microsoft Corporation.
3521
- * Licensed under the MIT License.
3522
- *
3523
- * Code generated by Microsoft (R) AutoRest Code Generator.
3524
- * Changes may cause incorrect behavior and will be lost if the code is
3525
- * regenerated.
3526
- */
3527
- /** Class representing a CommitmentTiers. */
3528
- var CommitmentTiers = /** @class */ (function () {
3529
- /**
3530
- * Create a CommitmentTiers.
3531
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
3532
- */
3533
- function CommitmentTiers(client) {
3534
- this.client = client;
3535
- }
3536
- CommitmentTiers.prototype.list = function (location, options, callback) {
3537
- return this.client.sendOperationRequest({
3538
- location: location,
3539
- options: options
3540
- }, listOperationSpec$4, callback);
3541
- };
3542
- CommitmentTiers.prototype.listNext = function (nextPageLink, options, callback) {
3543
- return this.client.sendOperationRequest({
3544
- nextPageLink: nextPageLink,
3545
- options: options
3546
- }, listNextOperationSpec$4, callback);
3547
- };
3548
- return CommitmentTiers;
3549
- }());
3550
- // Operation Specifications
3551
- var serializer$4 = new msRest.Serializer(Mappers$5);
3552
- var listOperationSpec$4 = {
3553
- httpMethod: "GET",
3554
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/commitmentTiers",
3555
- urlParameters: [
3556
- subscriptionId,
3557
- location
3558
- ],
3559
- queryParameters: [
3560
- apiVersion
3561
- ],
3562
- headerParameters: [
3563
- acceptLanguage
3564
- ],
3565
- responses: {
3566
- 200: {
3567
- bodyMapper: CommitmentTierListResult
3568
- },
3569
- default: {
3570
- bodyMapper: ErrorResponse
3571
- }
3572
- },
3573
- serializer: serializer$4
3574
- };
3575
- var listNextOperationSpec$4 = {
3576
- httpMethod: "GET",
3577
- baseUrl: "https://management.azure.com",
3578
- path: "{nextLink}",
3579
- urlParameters: [
3580
- nextPageLink
3581
- ],
3582
- queryParameters: [
3583
- apiVersion
3584
- ],
3585
- headerParameters: [
3586
- acceptLanguage
3587
- ],
3588
- responses: {
3589
- 200: {
3590
- bodyMapper: CommitmentTierListResult
3591
- },
3592
- default: {
3593
- bodyMapper: ErrorResponse
3594
- }
3595
- },
3596
- serializer: serializer$4
3597
- };
3598
-
3599
- /*
3600
- * Copyright (c) Microsoft Corporation.
3601
- * Licensed under the MIT License.
3602
- *
3603
- * Code generated by Microsoft (R) AutoRest Code Generator.
3604
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3605
- */
3606
-
3607
- var Mappers$6 = /*#__PURE__*/Object.freeze({
3608
- __proto__: null,
3609
- Account: Account,
3610
- AccountProperties: AccountProperties,
3611
- ApiProperties: ApiProperties,
3612
- AzureEntityResource: AzureEntityResource,
3613
- BaseResource: BaseResource,
3614
- CallRateLimit: CallRateLimit,
3615
- CommitmentPeriod: CommitmentPeriod,
3616
- CommitmentPlan: CommitmentPlan,
3617
- CommitmentPlanProperties: CommitmentPlanProperties,
3618
- CommitmentQuota: CommitmentQuota,
3619
- Deployment: Deployment,
3620
- DeploymentModel: DeploymentModel,
3621
- DeploymentProperties: DeploymentProperties,
3622
- DeploymentScaleSettings: DeploymentScaleSettings,
3623
- Encryption: Encryption,
3624
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3625
- ErrorDetail: ErrorDetail,
3626
- ErrorResponse: ErrorResponse,
3627
- Identity: Identity,
3628
- IpRule: IpRule,
3629
- KeyVaultProperties: KeyVaultProperties,
3630
- NetworkRuleSet: NetworkRuleSet,
3631
- PrivateEndpoint: PrivateEndpoint,
3632
- PrivateEndpointConnection: PrivateEndpointConnection,
3633
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
3634
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
3635
- PrivateLinkResource: PrivateLinkResource,
3636
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
3637
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
3638
- ProxyResource: ProxyResource,
3639
- QuotaLimit: QuotaLimit,
3640
- RequestMatchPattern: RequestMatchPattern,
3641
- Resource: Resource,
3642
- Sku: Sku,
3643
- SkuCapability: SkuCapability,
3644
- SkuChangeInfo: SkuChangeInfo,
3645
- SystemData: SystemData,
3646
- ThrottlingRule: ThrottlingRule,
3647
- TrackedResource: TrackedResource,
3648
- UserAssignedIdentity: UserAssignedIdentity,
3649
- UserOwnedStorage: UserOwnedStorage,
3650
- VirtualNetworkRule: VirtualNetworkRule
3651
- });
3652
-
3653
- /*
3654
- * Copyright (c) Microsoft Corporation.
3655
- * Licensed under the MIT License.
3656
- *
3657
- * Code generated by Microsoft (R) AutoRest Code Generator.
3658
- * Changes may cause incorrect behavior and will be lost if the code is
3659
- * regenerated.
3660
- */
3661
- /** Class representing a PrivateEndpointConnections. */
3662
- var PrivateEndpointConnections = /** @class */ (function () {
3663
- /**
3664
- * Create a PrivateEndpointConnections.
3665
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
3666
- */
3667
- function PrivateEndpointConnections(client) {
3668
- this.client = client;
3669
- }
3670
- PrivateEndpointConnections.prototype.list = function (resourceGroupName, accountName, options, callback) {
3671
- return this.client.sendOperationRequest({
3672
- resourceGroupName: resourceGroupName,
3673
- accountName: accountName,
3674
- options: options
3675
- }, listOperationSpec$5, callback);
3676
- };
3677
- PrivateEndpointConnections.prototype.get = function (resourceGroupName, accountName, privateEndpointConnectionName, options, callback) {
3678
- return this.client.sendOperationRequest({
3679
- resourceGroupName: resourceGroupName,
3680
- accountName: accountName,
3681
- privateEndpointConnectionName: privateEndpointConnectionName,
3682
- options: options
3683
- }, getOperationSpec$2, callback);
3684
- };
3685
- /**
3686
- * Update the state of specified private endpoint connection associated with the Cognitive Services
3687
- * account.
3688
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3689
- * @param accountName The name of Cognitive Services account.
3690
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
3691
- * the Cognitive Services Account
3692
- * @param properties The private endpoint connection properties.
3693
- * @param [options] The optional parameters
3694
- * @returns Promise<Models.PrivateEndpointConnectionsCreateOrUpdateResponse>
3695
- */
3696
- PrivateEndpointConnections.prototype.createOrUpdate = function (resourceGroupName, accountName, privateEndpointConnectionName, properties, options) {
3697
- return this.beginCreateOrUpdate(resourceGroupName, accountName, privateEndpointConnectionName, properties, options)
3698
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3699
- };
3700
- /**
3701
- * Deletes the specified private endpoint connection associated with the Cognitive Services
3702
- * account.
3703
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3704
- * @param accountName The name of Cognitive Services account.
3705
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
3706
- * the Cognitive Services Account
3707
- * @param [options] The optional parameters
3708
- * @returns Promise<msRest.RestResponse>
3709
- */
3710
- PrivateEndpointConnections.prototype.deleteMethod = function (resourceGroupName, accountName, privateEndpointConnectionName, options) {
3711
- return this.beginDeleteMethod(resourceGroupName, accountName, privateEndpointConnectionName, options)
3712
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3713
- };
3714
- /**
3715
- * Update the state of specified private endpoint connection associated with the Cognitive Services
3716
- * account.
3717
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3718
- * @param accountName The name of Cognitive Services account.
3719
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
3720
- * the Cognitive Services Account
3721
- * @param properties The private endpoint connection properties.
3722
- * @param [options] The optional parameters
3723
- * @returns Promise<msRestAzure.LROPoller>
3724
- */
3725
- PrivateEndpointConnections.prototype.beginCreateOrUpdate = function (resourceGroupName, accountName, privateEndpointConnectionName, properties, options) {
3726
- return this.client.sendLRORequest({
3727
- resourceGroupName: resourceGroupName,
3728
- accountName: accountName,
3729
- privateEndpointConnectionName: privateEndpointConnectionName,
3730
- properties: properties,
3731
- options: options
3732
- }, beginCreateOrUpdateOperationSpec, options);
3733
- };
3734
- /**
3735
- * Deletes the specified private endpoint connection associated with the Cognitive Services
3736
- * account.
3737
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3738
- * @param accountName The name of Cognitive Services account.
3739
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
3740
- * the Cognitive Services Account
3741
- * @param [options] The optional parameters
3742
- * @returns Promise<msRestAzure.LROPoller>
3743
- */
3744
- PrivateEndpointConnections.prototype.beginDeleteMethod = function (resourceGroupName, accountName, privateEndpointConnectionName, options) {
3745
- return this.client.sendLRORequest({
3746
- resourceGroupName: resourceGroupName,
3747
- accountName: accountName,
3748
- privateEndpointConnectionName: privateEndpointConnectionName,
3749
- options: options
3750
- }, beginDeleteMethodOperationSpec$1, options);
3751
- };
3752
- return PrivateEndpointConnections;
3753
- }());
3754
- // Operation Specifications
3755
- var serializer$5 = new msRest.Serializer(Mappers$6);
3756
- var listOperationSpec$5 = {
3757
- httpMethod: "GET",
3758
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections",
3759
- urlParameters: [
3760
- resourceGroupName,
3761
- accountName,
3762
- subscriptionId
3763
- ],
3764
- queryParameters: [
3765
- apiVersion
3766
- ],
3767
- headerParameters: [
3768
- acceptLanguage
3769
- ],
3770
- responses: {
3771
- 200: {
3772
- bodyMapper: PrivateEndpointConnectionListResult
3773
- },
3774
- default: {
3775
- bodyMapper: ErrorResponse
3776
- }
3777
- },
3778
- serializer: serializer$5
3779
- };
3780
- var getOperationSpec$2 = {
3781
- httpMethod: "GET",
3782
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
3783
- urlParameters: [
3784
- resourceGroupName,
3785
- accountName,
3786
- subscriptionId,
3787
- privateEndpointConnectionName
3788
- ],
3789
- queryParameters: [
3790
- apiVersion
3791
- ],
3792
- headerParameters: [
3793
- acceptLanguage
3794
- ],
3795
- responses: {
3796
- 200: {
3797
- bodyMapper: PrivateEndpointConnection
3798
- },
3799
- default: {
3800
- bodyMapper: ErrorResponse
3801
- }
3802
- },
3803
- serializer: serializer$5
3804
- };
3805
- var beginCreateOrUpdateOperationSpec = {
3806
- httpMethod: "PUT",
3807
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
3808
- urlParameters: [
3809
- resourceGroupName,
3810
- accountName,
3811
- subscriptionId,
3812
- privateEndpointConnectionName
3813
- ],
3814
- queryParameters: [
3815
- apiVersion
3816
- ],
3817
- headerParameters: [
3818
- acceptLanguage
3819
- ],
3820
- requestBody: {
3821
- parameterPath: "properties",
3822
- mapper: __assign(__assign({}, PrivateEndpointConnection), { required: true })
3823
- },
3824
- responses: {
3825
- 200: {
3826
- bodyMapper: PrivateEndpointConnection
3827
- },
3828
- 202: {
3829
- bodyMapper: PrivateEndpointConnection
3830
- },
3831
- default: {
3832
- bodyMapper: ErrorResponse
3833
- }
3834
- },
3835
- serializer: serializer$5
3836
- };
3837
- var beginDeleteMethodOperationSpec$1 = {
3838
- httpMethod: "DELETE",
3839
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
3840
- urlParameters: [
3841
- resourceGroupName,
3842
- accountName,
3843
- subscriptionId,
3844
- privateEndpointConnectionName
3845
- ],
3846
- queryParameters: [
3847
- apiVersion
3848
- ],
3849
- headerParameters: [
3850
- acceptLanguage
3851
- ],
3852
- responses: {
3853
- 200: {},
3854
- 202: {},
3855
- 204: {},
3856
- default: {
3857
- bodyMapper: ErrorResponse
3858
- }
3859
- },
3860
- serializer: serializer$5
3861
- };
3862
-
3863
- /*
3864
- * Copyright (c) Microsoft Corporation.
3865
- * Licensed under the MIT License.
3866
- *
3867
- * Code generated by Microsoft (R) AutoRest Code Generator.
3868
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3869
- */
3870
-
3871
- var Mappers$7 = /*#__PURE__*/Object.freeze({
3872
- __proto__: null,
3873
- Account: Account,
3874
- AccountProperties: AccountProperties,
3875
- ApiProperties: ApiProperties,
3876
- AzureEntityResource: AzureEntityResource,
3877
- BaseResource: BaseResource,
3878
- CallRateLimit: CallRateLimit,
3879
- CommitmentPeriod: CommitmentPeriod,
3880
- CommitmentPlan: CommitmentPlan,
3881
- CommitmentPlanProperties: CommitmentPlanProperties,
3882
- CommitmentQuota: CommitmentQuota,
3883
- Deployment: Deployment,
3884
- DeploymentModel: DeploymentModel,
3885
- DeploymentProperties: DeploymentProperties,
3886
- DeploymentScaleSettings: DeploymentScaleSettings,
3887
- Encryption: Encryption,
3888
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3889
- ErrorDetail: ErrorDetail,
3890
- ErrorResponse: ErrorResponse,
3891
- Identity: Identity,
3892
- IpRule: IpRule,
3893
- KeyVaultProperties: KeyVaultProperties,
3894
- NetworkRuleSet: NetworkRuleSet,
3895
- PrivateEndpoint: PrivateEndpoint,
3896
- PrivateEndpointConnection: PrivateEndpointConnection,
3897
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
3898
- PrivateLinkResource: PrivateLinkResource,
3899
- PrivateLinkResourceListResult: PrivateLinkResourceListResult,
3900
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
3901
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
3902
- ProxyResource: ProxyResource,
3903
- QuotaLimit: QuotaLimit,
3904
- RequestMatchPattern: RequestMatchPattern,
3905
- Resource: Resource,
3906
- Sku: Sku,
3907
- SkuCapability: SkuCapability,
3908
- SkuChangeInfo: SkuChangeInfo,
3909
- SystemData: SystemData,
3910
- ThrottlingRule: ThrottlingRule,
3911
- TrackedResource: TrackedResource,
3912
- UserAssignedIdentity: UserAssignedIdentity,
3913
- UserOwnedStorage: UserOwnedStorage,
3914
- VirtualNetworkRule: VirtualNetworkRule
3915
- });
3916
-
3917
- /*
3918
- * Copyright (c) Microsoft Corporation.
3919
- * Licensed under the MIT License.
3920
- *
3921
- * Code generated by Microsoft (R) AutoRest Code Generator.
3922
- * Changes may cause incorrect behavior and will be lost if the code is
3923
- * regenerated.
3924
- */
3925
- /** Class representing a PrivateLinkResources. */
3926
- var PrivateLinkResources = /** @class */ (function () {
3927
- /**
3928
- * Create a PrivateLinkResources.
3929
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
3930
- */
3931
- function PrivateLinkResources(client) {
3932
- this.client = client;
3933
- }
3934
- PrivateLinkResources.prototype.list = function (resourceGroupName, accountName, options, callback) {
3935
- return this.client.sendOperationRequest({
3936
- resourceGroupName: resourceGroupName,
3937
- accountName: accountName,
3938
- options: options
3939
- }, listOperationSpec$6, callback);
3940
- };
3941
- return PrivateLinkResources;
3942
- }());
3943
- // Operation Specifications
3944
- var serializer$6 = new msRest.Serializer(Mappers$7);
3945
- var listOperationSpec$6 = {
3946
- httpMethod: "GET",
3947
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources",
3948
- urlParameters: [
3949
- resourceGroupName,
3950
- accountName,
3951
- subscriptionId
3952
- ],
3953
- queryParameters: [
3954
- apiVersion
3955
- ],
3956
- headerParameters: [
3957
- acceptLanguage
3958
- ],
3959
- responses: {
3960
- 200: {
3961
- bodyMapper: PrivateLinkResourceListResult
3962
- },
3963
- default: {
3964
- bodyMapper: ErrorResponse
3965
- }
3966
- },
3967
- serializer: serializer$6
3968
- };
3969
-
3970
- /*
3971
- * Copyright (c) Microsoft Corporation.
3972
- * Licensed under the MIT License.
3973
- *
3974
- * Code generated by Microsoft (R) AutoRest Code Generator.
3975
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3976
- */
3977
-
3978
- var Mappers$8 = /*#__PURE__*/Object.freeze({
3979
- __proto__: null,
3980
- Account: Account,
3981
- AccountProperties: AccountProperties,
3982
- ApiProperties: ApiProperties,
3983
- AzureEntityResource: AzureEntityResource,
3984
- BaseResource: BaseResource,
3985
- CallRateLimit: CallRateLimit,
3986
- CommitmentPeriod: CommitmentPeriod,
3987
- CommitmentPlan: CommitmentPlan,
3988
- CommitmentPlanProperties: CommitmentPlanProperties,
3989
- CommitmentQuota: CommitmentQuota,
3990
- Deployment: Deployment,
3991
- DeploymentListResult: DeploymentListResult,
3992
- DeploymentModel: DeploymentModel,
3993
- DeploymentProperties: DeploymentProperties,
3994
- DeploymentScaleSettings: DeploymentScaleSettings,
3995
- Encryption: Encryption,
3996
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3997
- ErrorDetail: ErrorDetail,
3998
- ErrorResponse: ErrorResponse,
3999
- Identity: Identity,
4000
- IpRule: IpRule,
4001
- KeyVaultProperties: KeyVaultProperties,
4002
- NetworkRuleSet: NetworkRuleSet,
4003
- PrivateEndpoint: PrivateEndpoint,
4004
- PrivateEndpointConnection: PrivateEndpointConnection,
4005
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
4006
- PrivateLinkResource: PrivateLinkResource,
4007
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
4008
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
4009
- ProxyResource: ProxyResource,
4010
- QuotaLimit: QuotaLimit,
4011
- RequestMatchPattern: RequestMatchPattern,
4012
- Resource: Resource,
4013
- Sku: Sku,
4014
- SkuCapability: SkuCapability,
4015
- SkuChangeInfo: SkuChangeInfo,
4016
- SystemData: SystemData,
4017
- ThrottlingRule: ThrottlingRule,
4018
- TrackedResource: TrackedResource,
4019
- UserAssignedIdentity: UserAssignedIdentity,
4020
- UserOwnedStorage: UserOwnedStorage,
4021
- VirtualNetworkRule: VirtualNetworkRule
4022
- });
4023
-
4024
- /*
4025
- * Copyright (c) Microsoft Corporation.
4026
- * Licensed under the MIT License.
4027
- *
4028
- * Code generated by Microsoft (R) AutoRest Code Generator.
4029
- * Changes may cause incorrect behavior and will be lost if the code is
4030
- * regenerated.
4031
- */
4032
- /** Class representing a Deployments. */
4033
- var Deployments = /** @class */ (function () {
4034
- /**
4035
- * Create a Deployments.
4036
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
4037
- */
4038
- function Deployments(client) {
4039
- this.client = client;
4040
- }
4041
- Deployments.prototype.list = function (resourceGroupName, accountName, options, callback) {
4042
- return this.client.sendOperationRequest({
4043
- resourceGroupName: resourceGroupName,
4044
- accountName: accountName,
4045
- options: options
4046
- }, listOperationSpec$7, callback);
4047
- };
4048
- Deployments.prototype.get = function (resourceGroupName, accountName, deploymentName, options, callback) {
4049
- return this.client.sendOperationRequest({
4050
- resourceGroupName: resourceGroupName,
4051
- accountName: accountName,
4052
- deploymentName: deploymentName,
4053
- options: options
4054
- }, getOperationSpec$3, callback);
4055
- };
4056
- /**
4057
- * Update the state of specified deployments associated with the Cognitive Services account.
4058
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
4059
- * @param accountName The name of Cognitive Services account.
4060
- * @param deploymentName The name of the deployment associated with the Cognitive Services Account
4061
- * @param deployment The deployment properties.
4062
- * @param [options] The optional parameters
4063
- * @returns Promise<Models.DeploymentsCreateOrUpdateResponse>
4064
- */
4065
- Deployments.prototype.createOrUpdate = function (resourceGroupName, accountName, deploymentName, deployment, options) {
4066
- return this.beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, deployment, options)
4067
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4068
- };
4069
- /**
4070
- * Deletes the specified deployment associated with the Cognitive Services account.
4071
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
4072
- * @param accountName The name of Cognitive Services account.
4073
- * @param deploymentName The name of the deployment associated with the Cognitive Services Account
4074
- * @param [options] The optional parameters
4075
- * @returns Promise<msRest.RestResponse>
4076
- */
4077
- Deployments.prototype.deleteMethod = function (resourceGroupName, accountName, deploymentName, options) {
4078
- return this.beginDeleteMethod(resourceGroupName, accountName, deploymentName, options)
4079
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4080
- };
4081
- /**
4082
- * Update the state of specified deployments associated with the Cognitive Services account.
4083
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
4084
- * @param accountName The name of Cognitive Services account.
4085
- * @param deploymentName The name of the deployment associated with the Cognitive Services Account
4086
- * @param deployment The deployment properties.
4087
- * @param [options] The optional parameters
4088
- * @returns Promise<msRestAzure.LROPoller>
4089
- */
4090
- Deployments.prototype.beginCreateOrUpdate = function (resourceGroupName, accountName, deploymentName, deployment, options) {
4091
- return this.client.sendLRORequest({
4092
- resourceGroupName: resourceGroupName,
4093
- accountName: accountName,
4094
- deploymentName: deploymentName,
4095
- deployment: deployment,
4096
- options: options
4097
- }, beginCreateOrUpdateOperationSpec$1, options);
4098
- };
4099
- /**
4100
- * Deletes the specified deployment associated with the Cognitive Services account.
4101
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
4102
- * @param accountName The name of Cognitive Services account.
4103
- * @param deploymentName The name of the deployment associated with the Cognitive Services Account
4104
- * @param [options] The optional parameters
4105
- * @returns Promise<msRestAzure.LROPoller>
4106
- */
4107
- Deployments.prototype.beginDeleteMethod = function (resourceGroupName, accountName, deploymentName, options) {
4108
- return this.client.sendLRORequest({
4109
- resourceGroupName: resourceGroupName,
4110
- accountName: accountName,
4111
- deploymentName: deploymentName,
4112
- options: options
4113
- }, beginDeleteMethodOperationSpec$2, options);
4114
- };
4115
- Deployments.prototype.listNext = function (nextPageLink, options, callback) {
4116
- return this.client.sendOperationRequest({
4117
- nextPageLink: nextPageLink,
4118
- options: options
4119
- }, listNextOperationSpec$5, callback);
4120
- };
4121
- return Deployments;
4122
- }());
4123
- // Operation Specifications
4124
- var serializer$7 = new msRest.Serializer(Mappers$8);
4125
- var listOperationSpec$7 = {
4126
- httpMethod: "GET",
4127
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments",
4128
- urlParameters: [
4129
- resourceGroupName,
4130
- accountName,
4131
- subscriptionId
4132
- ],
4133
- queryParameters: [
4134
- apiVersion
4135
- ],
4136
- headerParameters: [
4137
- acceptLanguage
4138
- ],
4139
- responses: {
4140
- 200: {
4141
- bodyMapper: DeploymentListResult
4142
- },
4143
- default: {
4144
- bodyMapper: ErrorResponse
4145
- }
4146
- },
4147
- serializer: serializer$7
4148
- };
4149
- var getOperationSpec$3 = {
4150
- httpMethod: "GET",
4151
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
4152
- urlParameters: [
4153
- resourceGroupName,
4154
- accountName,
4155
- subscriptionId,
4156
- deploymentName
4157
- ],
4158
- queryParameters: [
4159
- apiVersion
4160
- ],
4161
- headerParameters: [
4162
- acceptLanguage
4163
- ],
4164
- responses: {
4165
- 200: {
4166
- bodyMapper: Deployment
4167
- },
4168
- default: {
4169
- bodyMapper: ErrorResponse
4170
- }
4171
- },
4172
- serializer: serializer$7
4173
- };
4174
- var beginCreateOrUpdateOperationSpec$1 = {
4175
- httpMethod: "PUT",
4176
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
4177
- urlParameters: [
4178
- resourceGroupName,
4179
- accountName,
4180
- subscriptionId,
4181
- deploymentName
4182
- ],
4183
- queryParameters: [
4184
- apiVersion
4185
- ],
4186
- headerParameters: [
4187
- acceptLanguage
4188
- ],
4189
- requestBody: {
4190
- parameterPath: "deployment",
4191
- mapper: __assign(__assign({}, Deployment), { required: true })
4192
- },
4193
- responses: {
4194
- 200: {
4195
- bodyMapper: Deployment
4196
- },
4197
- 201: {
4198
- bodyMapper: Deployment
4199
- },
4200
- default: {
4201
- bodyMapper: ErrorResponse
4202
- }
4203
- },
4204
- serializer: serializer$7
4205
- };
4206
- var beginDeleteMethodOperationSpec$2 = {
4207
- httpMethod: "DELETE",
4208
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}",
4209
- urlParameters: [
4210
- resourceGroupName,
4211
- accountName,
4212
- subscriptionId,
4213
- deploymentName
4214
- ],
4215
- queryParameters: [
4216
- apiVersion
4217
- ],
4218
- headerParameters: [
4219
- acceptLanguage
4220
- ],
4221
- responses: {
4222
- 200: {},
4223
- 202: {},
4224
- 204: {},
4225
- default: {
4226
- bodyMapper: ErrorResponse
4227
- }
4228
- },
4229
- serializer: serializer$7
4230
- };
4231
- var listNextOperationSpec$5 = {
4232
- httpMethod: "GET",
4233
- baseUrl: "https://management.azure.com",
4234
- path: "{nextLink}",
4235
- urlParameters: [
4236
- nextPageLink
4237
- ],
4238
- queryParameters: [
4239
- apiVersion
4240
- ],
4241
- headerParameters: [
4242
- acceptLanguage
4243
- ],
4244
- responses: {
4245
- 200: {
4246
- bodyMapper: DeploymentListResult
4247
- },
4248
- default: {
4249
- bodyMapper: ErrorResponse
4250
- }
4251
- },
4252
- serializer: serializer$7
4253
- };
4254
-
4255
- /*
4256
- * Copyright (c) Microsoft Corporation.
4257
- * Licensed under the MIT License.
4258
- *
4259
- * Code generated by Microsoft (R) AutoRest Code Generator.
4260
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4261
- */
4262
-
4263
- var Mappers$9 = /*#__PURE__*/Object.freeze({
4264
- __proto__: null,
4265
- Account: Account,
4266
- AccountProperties: AccountProperties,
4267
- ApiProperties: ApiProperties,
4268
- AzureEntityResource: AzureEntityResource,
4269
- BaseResource: BaseResource,
4270
- CallRateLimit: CallRateLimit,
4271
- CommitmentPeriod: CommitmentPeriod,
4272
- CommitmentPlan: CommitmentPlan,
4273
- CommitmentPlanListResult: CommitmentPlanListResult,
4274
- CommitmentPlanProperties: CommitmentPlanProperties,
4275
- CommitmentQuota: CommitmentQuota,
4276
- Deployment: Deployment,
4277
- DeploymentModel: DeploymentModel,
4278
- DeploymentProperties: DeploymentProperties,
4279
- DeploymentScaleSettings: DeploymentScaleSettings,
4280
- Encryption: Encryption,
4281
- ErrorAdditionalInfo: ErrorAdditionalInfo,
4282
- ErrorDetail: ErrorDetail,
4283
- ErrorResponse: ErrorResponse,
4284
- Identity: Identity,
4285
- IpRule: IpRule,
4286
- KeyVaultProperties: KeyVaultProperties,
4287
- NetworkRuleSet: NetworkRuleSet,
4288
- PrivateEndpoint: PrivateEndpoint,
4289
- PrivateEndpointConnection: PrivateEndpointConnection,
4290
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
4291
- PrivateLinkResource: PrivateLinkResource,
4292
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
4293
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
4294
- ProxyResource: ProxyResource,
4295
- QuotaLimit: QuotaLimit,
4296
- RequestMatchPattern: RequestMatchPattern,
4297
- Resource: Resource,
4298
- Sku: Sku,
4299
- SkuCapability: SkuCapability,
4300
- SkuChangeInfo: SkuChangeInfo,
4301
- SystemData: SystemData,
4302
- ThrottlingRule: ThrottlingRule,
4303
- TrackedResource: TrackedResource,
4304
- UserAssignedIdentity: UserAssignedIdentity,
4305
- UserOwnedStorage: UserOwnedStorage,
4306
- VirtualNetworkRule: VirtualNetworkRule
4307
- });
4308
-
4309
- /*
4310
- * Copyright (c) Microsoft Corporation.
4311
- * Licensed under the MIT License.
4312
- *
4313
- * Code generated by Microsoft (R) AutoRest Code Generator.
4314
- * Changes may cause incorrect behavior and will be lost if the code is
4315
- * regenerated.
4316
- */
4317
- /** Class representing a CommitmentPlans. */
4318
- var CommitmentPlans = /** @class */ (function () {
4319
- /**
4320
- * Create a CommitmentPlans.
4321
- * @param {CognitiveServicesManagementClientContext} client Reference to the service client.
4322
- */
4323
- function CommitmentPlans(client) {
4324
- this.client = client;
4325
- }
4326
- CommitmentPlans.prototype.list = function (resourceGroupName, accountName, options, callback) {
4327
- return this.client.sendOperationRequest({
4328
- resourceGroupName: resourceGroupName,
4329
- accountName: accountName,
4330
- options: options
4331
- }, listOperationSpec$8, callback);
4332
- };
4333
- CommitmentPlans.prototype.get = function (resourceGroupName, accountName, commitmentPlanName, options, callback) {
4334
- return this.client.sendOperationRequest({
4335
- resourceGroupName: resourceGroupName,
4336
- accountName: accountName,
4337
- commitmentPlanName: commitmentPlanName,
4338
- options: options
4339
- }, getOperationSpec$4, callback);
4340
- };
4341
- CommitmentPlans.prototype.createOrUpdate = function (resourceGroupName, accountName, commitmentPlanName, commitmentPlan, options, callback) {
4342
- return this.client.sendOperationRequest({
4343
- resourceGroupName: resourceGroupName,
4344
- accountName: accountName,
4345
- commitmentPlanName: commitmentPlanName,
4346
- commitmentPlan: commitmentPlan,
4347
- options: options
4348
- }, createOrUpdateOperationSpec, callback);
4349
- };
4350
- /**
4351
- * Deletes the specified commitmentPlan associated with the Cognitive Services account.
4352
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
4353
- * @param accountName The name of Cognitive Services account.
4354
- * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
4355
- * Account
4356
- * @param [options] The optional parameters
4357
- * @returns Promise<msRest.RestResponse>
4358
- */
4359
- CommitmentPlans.prototype.deleteMethod = function (resourceGroupName, accountName, commitmentPlanName, options) {
4360
- return this.beginDeleteMethod(resourceGroupName, accountName, commitmentPlanName, options)
4361
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4362
- };
4363
- /**
4364
- * Deletes the specified commitmentPlan associated with the Cognitive Services account.
4365
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
4366
- * @param accountName The name of Cognitive Services account.
4367
- * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
4368
- * Account
4369
- * @param [options] The optional parameters
4370
- * @returns Promise<msRestAzure.LROPoller>
4371
- */
4372
- CommitmentPlans.prototype.beginDeleteMethod = function (resourceGroupName, accountName, commitmentPlanName, options) {
4373
- return this.client.sendLRORequest({
4374
- resourceGroupName: resourceGroupName,
4375
- accountName: accountName,
4376
- commitmentPlanName: commitmentPlanName,
4377
- options: options
4378
- }, beginDeleteMethodOperationSpec$3, options);
4379
- };
4380
- CommitmentPlans.prototype.listNext = function (nextPageLink, options, callback) {
4381
- return this.client.sendOperationRequest({
4382
- nextPageLink: nextPageLink,
4383
- options: options
4384
- }, listNextOperationSpec$6, callback);
4385
- };
4386
- return CommitmentPlans;
4387
- }());
4388
- // Operation Specifications
4389
- var serializer$8 = new msRest.Serializer(Mappers$9);
4390
- var listOperationSpec$8 = {
4391
- httpMethod: "GET",
4392
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans",
4393
- urlParameters: [
4394
- resourceGroupName,
4395
- accountName,
4396
- subscriptionId
4397
- ],
4398
- queryParameters: [
4399
- apiVersion
4400
- ],
4401
- headerParameters: [
4402
- acceptLanguage
4403
- ],
4404
- responses: {
4405
- 200: {
4406
- bodyMapper: CommitmentPlanListResult
4407
- },
4408
- default: {
4409
- bodyMapper: ErrorResponse
4410
- }
4411
- },
4412
- serializer: serializer$8
4413
- };
4414
- var getOperationSpec$4 = {
4415
- httpMethod: "GET",
4416
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
4417
- urlParameters: [
4418
- resourceGroupName,
4419
- accountName,
4420
- subscriptionId,
4421
- commitmentPlanName
4422
- ],
4423
- queryParameters: [
4424
- apiVersion
4425
- ],
4426
- headerParameters: [
4427
- acceptLanguage
4428
- ],
4429
- responses: {
4430
- 200: {
4431
- bodyMapper: CommitmentPlan
4432
- },
4433
- default: {
4434
- bodyMapper: ErrorResponse
4435
- }
4436
- },
4437
- serializer: serializer$8
4438
- };
4439
- var createOrUpdateOperationSpec = {
4440
- httpMethod: "PUT",
4441
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
4442
- urlParameters: [
4443
- resourceGroupName,
4444
- accountName,
4445
- subscriptionId,
4446
- commitmentPlanName
4447
- ],
4448
- queryParameters: [
4449
- apiVersion
4450
- ],
4451
- headerParameters: [
4452
- acceptLanguage
4453
- ],
4454
- requestBody: {
4455
- parameterPath: "commitmentPlan",
4456
- mapper: __assign(__assign({}, CommitmentPlan), { required: true })
4457
- },
4458
- responses: {
4459
- 200: {
4460
- bodyMapper: CommitmentPlan
4461
- },
4462
- 201: {
4463
- bodyMapper: CommitmentPlan
4464
- },
4465
- default: {
4466
- bodyMapper: ErrorResponse
4467
- }
4468
- },
4469
- serializer: serializer$8
4470
- };
4471
- var beginDeleteMethodOperationSpec$3 = {
4472
- httpMethod: "DELETE",
4473
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}",
4474
- urlParameters: [
4475
- resourceGroupName,
4476
- accountName,
4477
- subscriptionId,
4478
- commitmentPlanName
4479
- ],
4480
- queryParameters: [
4481
- apiVersion
4482
- ],
4483
- headerParameters: [
4484
- acceptLanguage
4485
- ],
4486
- responses: {
4487
- 200: {},
4488
- 202: {},
4489
- 204: {},
4490
- default: {
4491
- bodyMapper: ErrorResponse
4492
- }
4493
- },
4494
- serializer: serializer$8
4495
- };
4496
- var listNextOperationSpec$6 = {
4497
- httpMethod: "GET",
4498
- baseUrl: "https://management.azure.com",
4499
- path: "{nextLink}",
4500
- urlParameters: [
4501
- nextPageLink
4502
- ],
4503
- queryParameters: [
4504
- apiVersion
4505
- ],
4506
- headerParameters: [
4507
- acceptLanguage
4508
- ],
4509
- responses: {
4510
- 200: {
4511
- bodyMapper: CommitmentPlanListResult
4512
- },
4513
- default: {
4514
- bodyMapper: ErrorResponse
4515
- }
4516
- },
4517
- serializer: serializer$8
4518
- };
4519
-
4520
- /*
4521
- * Copyright (c) Microsoft Corporation.
4522
- * Licensed under the MIT License.
4523
- *
4524
- * Code generated by Microsoft (R) AutoRest Code Generator.
4525
- * Changes may cause incorrect behavior and will be lost if the code is
4526
- * regenerated.
4527
- */
4528
- var packageName = "@azure/arm-cognitiveservices";
4529
- var packageVersion = "6.1.0";
4530
- var CognitiveServicesManagementClientContext = /** @class */ (function (_super) {
4531
- __extends(CognitiveServicesManagementClientContext, _super);
4532
- /**
4533
- * Initializes a new instance of the CognitiveServicesManagementClient class.
4534
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
4535
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
4536
- * more information about these credentials, see
4537
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
4538
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
4539
- * @azure/ms-rest-browserauth are also supported.
4540
- * @param subscriptionId The ID of the target subscription.
4541
- * @param [options] The parameter options
4542
- */
4543
- function CognitiveServicesManagementClientContext(credentials, subscriptionId, options) {
4544
- var _this = this;
4545
- if (credentials == undefined) {
4546
- throw new Error('\'credentials\' cannot be null.');
4547
- }
4548
- if (subscriptionId == undefined) {
4549
- throw new Error('\'subscriptionId\' cannot be null.');
4550
- }
4551
- if (!options) {
4552
- options = {};
4553
- }
4554
- if (!options.userAgent) {
4555
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4556
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
4557
- }
4558
- _this = _super.call(this, credentials, options) || this;
4559
- _this.apiVersion = '2021-10-01';
4560
- _this.acceptLanguage = 'en-US';
4561
- _this.longRunningOperationRetryTimeout = 30;
4562
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
4563
- _this.requestContentType = "application/json; charset=utf-8";
4564
- _this.credentials = credentials;
4565
- _this.subscriptionId = subscriptionId;
4566
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
4567
- _this.acceptLanguage = options.acceptLanguage;
4568
- }
4569
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
4570
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
4571
- }
4572
- return _this;
4573
- }
4574
- return CognitiveServicesManagementClientContext;
4575
- }(msRestAzure.AzureServiceClient));
4576
-
4577
- /*
4578
- * Copyright (c) Microsoft Corporation.
4579
- * Licensed under the MIT License.
4580
- *
4581
- * Code generated by Microsoft (R) AutoRest Code Generator.
4582
- * Changes may cause incorrect behavior and will be lost if the code is
4583
- * regenerated.
4584
- */
4585
- var CognitiveServicesManagementClient = /** @class */ (function (_super) {
4586
- __extends(CognitiveServicesManagementClient, _super);
4587
- /**
4588
- * Initializes a new instance of the CognitiveServicesManagementClient class.
4589
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
4590
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
4591
- * more information about these credentials, see
4592
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
4593
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
4594
- * @azure/ms-rest-browserauth are also supported.
4595
- * @param subscriptionId The ID of the target subscription.
4596
- * @param [options] The parameter options
4597
- */
4598
- function CognitiveServicesManagementClient(credentials, subscriptionId, options) {
4599
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
4600
- _this.accounts = new Accounts(_this);
4601
- _this.deletedAccounts = new DeletedAccounts(_this);
4602
- _this.resourceSkus = new ResourceSkus(_this);
4603
- _this.operations = new Operations(_this);
4604
- _this.commitmentTiers = new CommitmentTiers(_this);
4605
- _this.privateEndpointConnections = new PrivateEndpointConnections(_this);
4606
- _this.privateLinkResources = new PrivateLinkResources(_this);
4607
- _this.deployments = new Deployments(_this);
4608
- _this.commitmentPlans = new CommitmentPlans(_this);
4609
- return _this;
4610
- }
4611
- CognitiveServicesManagementClient.prototype.checkSkuAvailability = function (location, skus, kind, type, options, callback) {
4612
- return this.sendOperationRequest({
4613
- location: location,
4614
- skus: skus,
4615
- kind: kind,
4616
- type: type,
4617
- options: options
4618
- }, checkSkuAvailabilityOperationSpec, callback);
4619
- };
4620
- CognitiveServicesManagementClient.prototype.checkDomainAvailability = function (subdomainName, type, options, callback) {
4621
- return this.sendOperationRequest({
4622
- subdomainName: subdomainName,
4623
- type: type,
4624
- options: options
4625
- }, checkDomainAvailabilityOperationSpec, callback);
4626
- };
4627
- return CognitiveServicesManagementClient;
4628
- }(CognitiveServicesManagementClientContext));
4629
- // Operation Specifications
4630
- var serializer$9 = new msRest.Serializer(Mappers);
4631
- var checkSkuAvailabilityOperationSpec = {
4632
- httpMethod: "POST",
4633
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",
4634
- urlParameters: [
4635
- subscriptionId,
4636
- location
4637
- ],
4638
- queryParameters: [
4639
- apiVersion
4640
- ],
4641
- headerParameters: [
4642
- acceptLanguage
4643
- ],
4644
- requestBody: {
4645
- parameterPath: {
4646
- skus: "skus",
4647
- kind: "kind",
4648
- type: "type"
4649
- },
4650
- mapper: __assign(__assign({}, CheckSkuAvailabilityParameter), { required: true })
4651
- },
4652
- responses: {
4653
- 200: {
4654
- bodyMapper: SkuAvailabilityListResult
4655
- },
4656
- default: {
4657
- bodyMapper: ErrorResponse
4658
- }
4659
- },
4660
- serializer: serializer$9
4661
- };
4662
- var checkDomainAvailabilityOperationSpec = {
4663
- httpMethod: "POST",
4664
- path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability",
4665
- urlParameters: [
4666
- subscriptionId
4667
- ],
4668
- queryParameters: [
4669
- apiVersion
4670
- ],
4671
- headerParameters: [
4672
- acceptLanguage
4673
- ],
4674
- requestBody: {
4675
- parameterPath: {
4676
- subdomainName: "subdomainName",
4677
- type: "type",
4678
- kind: [
4679
- "options",
4680
- "kind"
4681
- ]
4682
- },
4683
- mapper: __assign(__assign({}, CheckDomainAvailabilityParameter), { required: true })
4684
- },
4685
- responses: {
4686
- 200: {
4687
- bodyMapper: DomainAvailability
4688
- },
4689
- default: {
4690
- bodyMapper: ErrorResponse
4691
- }
4692
- },
4693
- serializer: serializer$9
4694
- };
4695
-
4696
- exports.Accounts = Accounts;
4697
- exports.CognitiveServicesManagementClient = CognitiveServicesManagementClient;
4698
- exports.CognitiveServicesManagementClientContext = CognitiveServicesManagementClientContext;
4699
- exports.CognitiveServicesManagementMappers = Mappers;
4700
- exports.CognitiveServicesManagementModels = index;
4701
- exports.CommitmentPlans = CommitmentPlans;
4702
- exports.CommitmentTiers = CommitmentTiers;
4703
- exports.DeletedAccounts = DeletedAccounts;
4704
- exports.Deployments = Deployments;
4705
- exports.Operations = Operations;
4706
- exports.PrivateEndpointConnections = PrivateEndpointConnections;
4707
- exports.PrivateLinkResources = PrivateLinkResources;
4708
- exports.ResourceSkus = ResourceSkus;
4709
-
4710
- Object.defineProperty(exports, '__esModule', { value: true });
4711
-
4712
- })));
4713
- //# sourceMappingURL=arm-cognitiveservices.js.map