@azure/synapse-spark 1.0.0-alpha.20241121.1 → 1.0.0-alpha.20241125.1

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 (205) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.d.ts +4 -0
  3. package/dist/browser/index.d.ts.map +1 -0
  4. package/dist/browser/index.js +11 -0
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/models/index.d.ts +548 -0
  7. package/dist/browser/models/index.d.ts.map +1 -0
  8. package/dist/browser/models/index.js +134 -0
  9. package/dist/browser/models/index.js.map +1 -0
  10. package/dist/browser/models/mappers.d.ts +19 -0
  11. package/dist/browser/models/mappers.d.ts.map +1 -0
  12. package/dist/browser/models/mappers.js +1151 -0
  13. package/dist/browser/models/mappers.js.map +1 -0
  14. package/dist/browser/models/parameters.d.ts +16 -0
  15. package/dist/browser/models/parameters.d.ts.map +1 -0
  16. package/dist/browser/models/parameters.js +133 -0
  17. package/dist/browser/models/parameters.js.map +1 -0
  18. package/dist/browser/operations/index.d.ts +3 -0
  19. package/dist/browser/operations/index.d.ts.map +1 -0
  20. package/dist/browser/operations/index.js +10 -0
  21. package/dist/browser/operations/index.js.map +1 -0
  22. package/dist/browser/operations/sparkBatch.d.ts +36 -0
  23. package/dist/browser/operations/sparkBatch.d.ts.map +1 -0
  24. package/dist/browser/operations/sparkBatch.js +121 -0
  25. package/dist/browser/operations/sparkBatch.js.map +1 -0
  26. package/dist/browser/operations/sparkSessionOperations.d.ts +69 -0
  27. package/dist/browser/operations/sparkSessionOperations.d.ts.map +1 -0
  28. package/dist/browser/operations/sparkSessionOperations.js +258 -0
  29. package/dist/browser/operations/sparkSessionOperations.js.map +1 -0
  30. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  32. package/dist/browser/operationsInterfaces/index.js +10 -0
  33. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  34. package/dist/browser/operationsInterfaces/sparkBatch.d.ts +28 -0
  35. package/dist/browser/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  36. package/dist/browser/operationsInterfaces/sparkBatch.js +9 -0
  37. package/dist/browser/operationsInterfaces/sparkBatch.js.map +1 -0
  38. package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  39. package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  40. package/dist/browser/operationsInterfaces/sparkSessionOperations.js +9 -0
  41. package/dist/browser/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  42. package/dist/browser/package.json +3 -0
  43. package/dist/browser/sparkClient.d.ts +24 -0
  44. package/dist/browser/sparkClient.d.ts.map +1 -0
  45. package/dist/browser/sparkClient.js +77 -0
  46. package/dist/browser/sparkClient.js.map +1 -0
  47. package/dist/browser/tracing.d.ts +2 -0
  48. package/dist/browser/tracing.d.ts.map +1 -0
  49. package/dist/browser/tracing.js +14 -0
  50. package/dist/browser/tracing.js.map +1 -0
  51. package/dist/commonjs/index.d.ts +4 -0
  52. package/dist/commonjs/index.d.ts.map +1 -0
  53. package/dist/commonjs/index.js +16 -0
  54. package/dist/commonjs/index.js.map +1 -0
  55. package/dist/commonjs/models/index.d.ts +548 -0
  56. package/dist/commonjs/models/index.d.ts.map +1 -0
  57. package/dist/commonjs/models/index.js +137 -0
  58. package/dist/commonjs/models/index.js.map +1 -0
  59. package/dist/commonjs/models/mappers.d.ts +19 -0
  60. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  61. package/dist/commonjs/models/mappers.js +1154 -0
  62. package/dist/commonjs/models/mappers.js.map +1 -0
  63. package/dist/commonjs/models/parameters.d.ts +16 -0
  64. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  65. package/dist/commonjs/models/parameters.js +136 -0
  66. package/dist/commonjs/models/parameters.js.map +1 -0
  67. package/dist/commonjs/operations/index.d.ts +3 -0
  68. package/dist/commonjs/operations/index.d.ts.map +1 -0
  69. package/dist/commonjs/operations/index.js +13 -0
  70. package/dist/commonjs/operations/index.js.map +1 -0
  71. package/dist/commonjs/operations/sparkBatch.d.ts +36 -0
  72. package/dist/commonjs/operations/sparkBatch.d.ts.map +1 -0
  73. package/dist/commonjs/operations/sparkBatch.js +126 -0
  74. package/dist/commonjs/operations/sparkBatch.js.map +1 -0
  75. package/dist/commonjs/operations/sparkSessionOperations.d.ts +69 -0
  76. package/dist/commonjs/operations/sparkSessionOperations.d.ts.map +1 -0
  77. package/dist/commonjs/operations/sparkSessionOperations.js +263 -0
  78. package/dist/commonjs/operations/sparkSessionOperations.js.map +1 -0
  79. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  80. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  81. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  82. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  83. package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts +28 -0
  84. package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  85. package/dist/commonjs/operationsInterfaces/sparkBatch.js +10 -0
  86. package/dist/commonjs/operationsInterfaces/sparkBatch.js.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  88. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js +10 -0
  90. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  91. package/dist/commonjs/package.json +3 -0
  92. package/dist/commonjs/sparkClient.d.ts +24 -0
  93. package/dist/commonjs/sparkClient.d.ts.map +1 -0
  94. package/dist/commonjs/sparkClient.js +82 -0
  95. package/dist/commonjs/sparkClient.js.map +1 -0
  96. package/dist/commonjs/tracing.d.ts +2 -0
  97. package/dist/commonjs/tracing.d.ts.map +1 -0
  98. package/dist/commonjs/tracing.js +17 -0
  99. package/dist/commonjs/tracing.js.map +1 -0
  100. package/dist/commonjs/tsdoc-metadata.json +11 -0
  101. package/dist/esm/index.d.ts +4 -0
  102. package/dist/esm/index.d.ts.map +1 -0
  103. package/dist/esm/index.js +11 -0
  104. package/dist/esm/index.js.map +1 -0
  105. package/dist/esm/models/index.d.ts +548 -0
  106. package/dist/esm/models/index.d.ts.map +1 -0
  107. package/dist/esm/models/index.js +134 -0
  108. package/dist/esm/models/index.js.map +1 -0
  109. package/dist/esm/models/mappers.d.ts +19 -0
  110. package/dist/esm/models/mappers.d.ts.map +1 -0
  111. package/dist/esm/models/mappers.js +1151 -0
  112. package/dist/esm/models/mappers.js.map +1 -0
  113. package/dist/esm/models/parameters.d.ts +16 -0
  114. package/dist/esm/models/parameters.d.ts.map +1 -0
  115. package/dist/esm/models/parameters.js +133 -0
  116. package/dist/esm/models/parameters.js.map +1 -0
  117. package/dist/esm/operations/index.d.ts +3 -0
  118. package/dist/esm/operations/index.d.ts.map +1 -0
  119. package/dist/esm/operations/index.js +10 -0
  120. package/dist/esm/operations/index.js.map +1 -0
  121. package/dist/esm/operations/sparkBatch.d.ts +36 -0
  122. package/dist/esm/operations/sparkBatch.d.ts.map +1 -0
  123. package/dist/esm/operations/sparkBatch.js +121 -0
  124. package/dist/esm/operations/sparkBatch.js.map +1 -0
  125. package/dist/esm/operations/sparkSessionOperations.d.ts +69 -0
  126. package/dist/esm/operations/sparkSessionOperations.d.ts.map +1 -0
  127. package/dist/esm/operations/sparkSessionOperations.js +258 -0
  128. package/dist/esm/operations/sparkSessionOperations.js.map +1 -0
  129. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  130. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  131. package/dist/esm/operationsInterfaces/index.js +10 -0
  132. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  133. package/dist/esm/operationsInterfaces/sparkBatch.d.ts +28 -0
  134. package/dist/esm/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  135. package/dist/esm/operationsInterfaces/sparkBatch.js +9 -0
  136. package/dist/esm/operationsInterfaces/sparkBatch.js.map +1 -0
  137. package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  138. package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  139. package/dist/esm/operationsInterfaces/sparkSessionOperations.js +9 -0
  140. package/dist/esm/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  141. package/dist/esm/package.json +3 -0
  142. package/dist/esm/sparkClient.d.ts +24 -0
  143. package/dist/esm/sparkClient.d.ts.map +1 -0
  144. package/dist/esm/sparkClient.js +77 -0
  145. package/dist/esm/sparkClient.js.map +1 -0
  146. package/dist/esm/tracing.d.ts +2 -0
  147. package/dist/esm/tracing.d.ts.map +1 -0
  148. package/dist/esm/tracing.js +14 -0
  149. package/dist/esm/tracing.js.map +1 -0
  150. package/dist/react-native/index.d.ts +4 -0
  151. package/dist/react-native/index.d.ts.map +1 -0
  152. package/dist/react-native/index.js +11 -0
  153. package/dist/react-native/index.js.map +1 -0
  154. package/dist/react-native/models/index.d.ts +548 -0
  155. package/dist/react-native/models/index.d.ts.map +1 -0
  156. package/dist/react-native/models/index.js +134 -0
  157. package/dist/react-native/models/index.js.map +1 -0
  158. package/dist/react-native/models/mappers.d.ts +19 -0
  159. package/dist/react-native/models/mappers.d.ts.map +1 -0
  160. package/dist/react-native/models/mappers.js +1151 -0
  161. package/dist/react-native/models/mappers.js.map +1 -0
  162. package/dist/react-native/models/parameters.d.ts +16 -0
  163. package/dist/react-native/models/parameters.d.ts.map +1 -0
  164. package/dist/react-native/models/parameters.js +133 -0
  165. package/dist/react-native/models/parameters.js.map +1 -0
  166. package/dist/react-native/operations/index.d.ts +3 -0
  167. package/dist/react-native/operations/index.d.ts.map +1 -0
  168. package/dist/react-native/operations/index.js +10 -0
  169. package/dist/react-native/operations/index.js.map +1 -0
  170. package/dist/react-native/operations/sparkBatch.d.ts +36 -0
  171. package/dist/react-native/operations/sparkBatch.d.ts.map +1 -0
  172. package/dist/react-native/operations/sparkBatch.js +121 -0
  173. package/dist/react-native/operations/sparkBatch.js.map +1 -0
  174. package/dist/react-native/operations/sparkSessionOperations.d.ts +69 -0
  175. package/dist/react-native/operations/sparkSessionOperations.d.ts.map +1 -0
  176. package/dist/react-native/operations/sparkSessionOperations.js +258 -0
  177. package/dist/react-native/operations/sparkSessionOperations.js.map +1 -0
  178. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  179. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  180. package/dist/react-native/operationsInterfaces/index.js +10 -0
  181. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  182. package/dist/react-native/operationsInterfaces/sparkBatch.d.ts +28 -0
  183. package/dist/react-native/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  184. package/dist/react-native/operationsInterfaces/sparkBatch.js +9 -0
  185. package/dist/react-native/operationsInterfaces/sparkBatch.js.map +1 -0
  186. package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  187. package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  188. package/dist/react-native/operationsInterfaces/sparkSessionOperations.js +9 -0
  189. package/dist/react-native/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  190. package/dist/react-native/package.json +3 -0
  191. package/dist/react-native/sparkClient.d.ts +24 -0
  192. package/dist/react-native/sparkClient.d.ts.map +1 -0
  193. package/dist/react-native/sparkClient.js +77 -0
  194. package/dist/react-native/sparkClient.js.map +1 -0
  195. package/dist/react-native/tracing.d.ts +2 -0
  196. package/dist/react-native/tracing.d.ts.map +1 -0
  197. package/dist/react-native/tracing.js +14 -0
  198. package/dist/react-native/tracing.js.map +1 -0
  199. package/{types → dist}/synapse-spark.d.ts +77 -77
  200. package/package.json +66 -52
  201. package/dist/index.js +0 -1943
  202. package/dist/index.js.map +0 -1
  203. package/dist/index.min.js +0 -1
  204. package/dist/index.min.js.map +0 -1
  205. package/tsconfig.json +0 -19
package/dist/index.js DELETED
@@ -1,1943 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var coreClient = require('@azure/core-client');
6
- var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var coreTracing = require('@azure/core-tracing');
8
-
9
- function _interopNamespaceDefault(e) {
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
27
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
28
-
29
- /*
30
- * Copyright (c) Microsoft Corporation.
31
- * Licensed under the MIT License.
32
- *
33
- * Code generated by Microsoft (R) AutoRest Code Generator.
34
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
- */
36
- /** Known values of {@link SparkJobType} that the service accepts. */
37
- exports.KnownSparkJobType = void 0;
38
- (function (KnownSparkJobType) {
39
- /** SparkBatch */
40
- KnownSparkJobType["SparkBatch"] = "SparkBatch";
41
- /** SparkSession */
42
- KnownSparkJobType["SparkSession"] = "SparkSession";
43
- })(exports.KnownSparkJobType || (exports.KnownSparkJobType = {}));
44
- /** Known values of {@link SparkBatchJobResultType} that the service accepts. */
45
- exports.KnownSparkBatchJobResultType = void 0;
46
- (function (KnownSparkBatchJobResultType) {
47
- /** Uncertain */
48
- KnownSparkBatchJobResultType["Uncertain"] = "Uncertain";
49
- /** Succeeded */
50
- KnownSparkBatchJobResultType["Succeeded"] = "Succeeded";
51
- /** Failed */
52
- KnownSparkBatchJobResultType["Failed"] = "Failed";
53
- /** Cancelled */
54
- KnownSparkBatchJobResultType["Cancelled"] = "Cancelled";
55
- })(exports.KnownSparkBatchJobResultType || (exports.KnownSparkBatchJobResultType = {}));
56
- /** Known values of {@link SchedulerCurrentState} that the service accepts. */
57
- exports.KnownSchedulerCurrentState = void 0;
58
- (function (KnownSchedulerCurrentState) {
59
- /** Queued */
60
- KnownSchedulerCurrentState["Queued"] = "Queued";
61
- /** Scheduled */
62
- KnownSchedulerCurrentState["Scheduled"] = "Scheduled";
63
- /** Ended */
64
- KnownSchedulerCurrentState["Ended"] = "Ended";
65
- })(exports.KnownSchedulerCurrentState || (exports.KnownSchedulerCurrentState = {}));
66
- /** Known values of {@link PluginCurrentState} that the service accepts. */
67
- exports.KnownPluginCurrentState = void 0;
68
- (function (KnownPluginCurrentState) {
69
- /** Preparation */
70
- KnownPluginCurrentState["Preparation"] = "Preparation";
71
- /** ResourceAcquisition */
72
- KnownPluginCurrentState["ResourceAcquisition"] = "ResourceAcquisition";
73
- /** Queued */
74
- KnownPluginCurrentState["Queued"] = "Queued";
75
- /** Submission */
76
- KnownPluginCurrentState["Submission"] = "Submission";
77
- /** Monitoring */
78
- KnownPluginCurrentState["Monitoring"] = "Monitoring";
79
- /** Cleanup */
80
- KnownPluginCurrentState["Cleanup"] = "Cleanup";
81
- /** Ended */
82
- KnownPluginCurrentState["Ended"] = "Ended";
83
- })(exports.KnownPluginCurrentState || (exports.KnownPluginCurrentState = {}));
84
- /** Known values of {@link SparkErrorSource} that the service accepts. */
85
- exports.KnownSparkErrorSource = void 0;
86
- (function (KnownSparkErrorSource) {
87
- /** System */
88
- KnownSparkErrorSource["System"] = "System";
89
- /** User */
90
- KnownSparkErrorSource["User"] = "User";
91
- /** Unknown */
92
- KnownSparkErrorSource["Unknown"] = "Unknown";
93
- /** Dependency */
94
- KnownSparkErrorSource["Dependency"] = "Dependency";
95
- })(exports.KnownSparkErrorSource || (exports.KnownSparkErrorSource = {}));
96
- /** Known values of {@link LivyStates} that the service accepts. */
97
- exports.KnownLivyStates = void 0;
98
- (function (KnownLivyStates) {
99
- /** NotStarted */
100
- KnownLivyStates["NotStarted"] = "not_started";
101
- /** Starting */
102
- KnownLivyStates["Starting"] = "starting";
103
- /** Idle */
104
- KnownLivyStates["Idle"] = "idle";
105
- /** Busy */
106
- KnownLivyStates["Busy"] = "busy";
107
- /** ShuttingDown */
108
- KnownLivyStates["ShuttingDown"] = "shutting_down";
109
- /** Error */
110
- KnownLivyStates["Error"] = "error";
111
- /** Dead */
112
- KnownLivyStates["Dead"] = "dead";
113
- /** Killed */
114
- KnownLivyStates["Killed"] = "killed";
115
- /** Success */
116
- KnownLivyStates["Success"] = "success";
117
- /** Running */
118
- KnownLivyStates["Running"] = "running";
119
- /** Recovering */
120
- KnownLivyStates["Recovering"] = "recovering";
121
- })(exports.KnownLivyStates || (exports.KnownLivyStates = {}));
122
- /** Known values of {@link SparkSessionResultType} that the service accepts. */
123
- exports.KnownSparkSessionResultType = void 0;
124
- (function (KnownSparkSessionResultType) {
125
- /** Uncertain */
126
- KnownSparkSessionResultType["Uncertain"] = "Uncertain";
127
- /** Succeeded */
128
- KnownSparkSessionResultType["Succeeded"] = "Succeeded";
129
- /** Failed */
130
- KnownSparkSessionResultType["Failed"] = "Failed";
131
- /** Cancelled */
132
- KnownSparkSessionResultType["Cancelled"] = "Cancelled";
133
- })(exports.KnownSparkSessionResultType || (exports.KnownSparkSessionResultType = {}));
134
- /** Known values of {@link LivyStatementStates} that the service accepts. */
135
- exports.KnownLivyStatementStates = void 0;
136
- (function (KnownLivyStatementStates) {
137
- /** Waiting */
138
- KnownLivyStatementStates["Waiting"] = "waiting";
139
- /** Running */
140
- KnownLivyStatementStates["Running"] = "running";
141
- /** Available */
142
- KnownLivyStatementStates["Available"] = "available";
143
- /** Error */
144
- KnownLivyStatementStates["Error"] = "error";
145
- /** Cancelling */
146
- KnownLivyStatementStates["Cancelling"] = "cancelling";
147
- /** Cancelled */
148
- KnownLivyStatementStates["Cancelled"] = "cancelled";
149
- })(exports.KnownLivyStatementStates || (exports.KnownLivyStatementStates = {}));
150
- /** Known values of {@link SparkStatementLanguageType} that the service accepts. */
151
- exports.KnownSparkStatementLanguageType = void 0;
152
- (function (KnownSparkStatementLanguageType) {
153
- /** Spark */
154
- KnownSparkStatementLanguageType["Spark"] = "spark";
155
- /** PySpark */
156
- KnownSparkStatementLanguageType["PySpark"] = "pyspark";
157
- /** DotNetSpark */
158
- KnownSparkStatementLanguageType["DotNetSpark"] = "dotnetspark";
159
- /** Sql */
160
- KnownSparkStatementLanguageType["Sql"] = "sql";
161
- })(exports.KnownSparkStatementLanguageType || (exports.KnownSparkStatementLanguageType = {}));
162
-
163
- /*
164
- * Copyright (c) Microsoft Corporation.
165
- * Licensed under the MIT License.
166
- *
167
- * Code generated by Microsoft (R) AutoRest Code Generator.
168
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
169
- */
170
- const tracingClient = coreTracing.createTracingClient({
171
- namespace: "Azure.Synapse.Spark",
172
- packageName: "@azure/synapse-spark",
173
- packageVersion: "1.0.0-beta.6"
174
- });
175
-
176
- /*
177
- * Copyright (c) Microsoft Corporation.
178
- * Licensed under the MIT License.
179
- *
180
- * Code generated by Microsoft (R) AutoRest Code Generator.
181
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
182
- */
183
- const SparkBatchJobCollection = {
184
- type: {
185
- name: "Composite",
186
- className: "SparkBatchJobCollection",
187
- modelProperties: {
188
- from: {
189
- serializedName: "from",
190
- required: true,
191
- type: {
192
- name: "Number"
193
- }
194
- },
195
- total: {
196
- serializedName: "total",
197
- required: true,
198
- type: {
199
- name: "Number"
200
- }
201
- },
202
- sessions: {
203
- serializedName: "sessions",
204
- type: {
205
- name: "Sequence",
206
- element: {
207
- type: {
208
- name: "Composite",
209
- className: "SparkBatchJob"
210
- }
211
- }
212
- }
213
- }
214
- }
215
- }
216
- };
217
- const SparkBatchJob = {
218
- type: {
219
- name: "Composite",
220
- className: "SparkBatchJob",
221
- modelProperties: {
222
- livyInfo: {
223
- serializedName: "livyInfo",
224
- type: {
225
- name: "Composite",
226
- className: "SparkBatchJobState"
227
- }
228
- },
229
- name: {
230
- serializedName: "name",
231
- type: {
232
- name: "String"
233
- }
234
- },
235
- workspaceName: {
236
- serializedName: "workspaceName",
237
- type: {
238
- name: "String"
239
- }
240
- },
241
- sparkPoolName: {
242
- serializedName: "sparkPoolName",
243
- type: {
244
- name: "String"
245
- }
246
- },
247
- submitterName: {
248
- serializedName: "submitterName",
249
- type: {
250
- name: "String"
251
- }
252
- },
253
- submitterId: {
254
- serializedName: "submitterId",
255
- type: {
256
- name: "String"
257
- }
258
- },
259
- artifactId: {
260
- serializedName: "artifactId",
261
- type: {
262
- name: "String"
263
- }
264
- },
265
- jobType: {
266
- serializedName: "jobType",
267
- type: {
268
- name: "String"
269
- }
270
- },
271
- result: {
272
- serializedName: "result",
273
- type: {
274
- name: "String"
275
- }
276
- },
277
- scheduler: {
278
- serializedName: "schedulerInfo",
279
- type: {
280
- name: "Composite",
281
- className: "SparkScheduler"
282
- }
283
- },
284
- plugin: {
285
- serializedName: "pluginInfo",
286
- type: {
287
- name: "Composite",
288
- className: "SparkServicePlugin"
289
- }
290
- },
291
- errors: {
292
- serializedName: "errorInfo",
293
- type: {
294
- name: "Sequence",
295
- element: {
296
- type: {
297
- name: "Composite",
298
- className: "SparkServiceError"
299
- }
300
- }
301
- }
302
- },
303
- tags: {
304
- serializedName: "tags",
305
- type: {
306
- name: "Dictionary",
307
- value: { type: { name: "String" } }
308
- }
309
- },
310
- id: {
311
- serializedName: "id",
312
- required: true,
313
- type: {
314
- name: "Number"
315
- }
316
- },
317
- appId: {
318
- serializedName: "appId",
319
- nullable: true,
320
- type: {
321
- name: "String"
322
- }
323
- },
324
- appInfo: {
325
- serializedName: "appInfo",
326
- nullable: true,
327
- type: {
328
- name: "Dictionary",
329
- value: { type: { name: "String" } }
330
- }
331
- },
332
- state: {
333
- serializedName: "state",
334
- type: {
335
- name: "String"
336
- }
337
- },
338
- logLines: {
339
- serializedName: "log",
340
- nullable: true,
341
- type: {
342
- name: "Sequence",
343
- element: {
344
- type: {
345
- name: "String"
346
- }
347
- }
348
- }
349
- }
350
- }
351
- }
352
- };
353
- const SparkBatchJobState = {
354
- type: {
355
- name: "Composite",
356
- className: "SparkBatchJobState",
357
- modelProperties: {
358
- notStartedAt: {
359
- serializedName: "notStartedAt",
360
- nullable: true,
361
- type: {
362
- name: "DateTime"
363
- }
364
- },
365
- startingAt: {
366
- serializedName: "startingAt",
367
- nullable: true,
368
- type: {
369
- name: "DateTime"
370
- }
371
- },
372
- runningAt: {
373
- serializedName: "runningAt",
374
- nullable: true,
375
- type: {
376
- name: "DateTime"
377
- }
378
- },
379
- deadAt: {
380
- serializedName: "deadAt",
381
- nullable: true,
382
- type: {
383
- name: "DateTime"
384
- }
385
- },
386
- successAt: {
387
- serializedName: "successAt",
388
- nullable: true,
389
- type: {
390
- name: "DateTime"
391
- }
392
- },
393
- terminatedAt: {
394
- serializedName: "killedAt",
395
- nullable: true,
396
- type: {
397
- name: "DateTime"
398
- }
399
- },
400
- recoveringAt: {
401
- serializedName: "recoveringAt",
402
- nullable: true,
403
- type: {
404
- name: "DateTime"
405
- }
406
- },
407
- currentState: {
408
- serializedName: "currentState",
409
- type: {
410
- name: "String"
411
- }
412
- },
413
- jobCreationRequest: {
414
- serializedName: "jobCreationRequest",
415
- type: {
416
- name: "Composite",
417
- className: "SparkRequest"
418
- }
419
- }
420
- }
421
- }
422
- };
423
- const SparkRequest = {
424
- type: {
425
- name: "Composite",
426
- className: "SparkRequest",
427
- modelProperties: {
428
- name: {
429
- serializedName: "name",
430
- type: {
431
- name: "String"
432
- }
433
- },
434
- file: {
435
- serializedName: "file",
436
- type: {
437
- name: "String"
438
- }
439
- },
440
- className: {
441
- serializedName: "className",
442
- type: {
443
- name: "String"
444
- }
445
- },
446
- arguments: {
447
- serializedName: "args",
448
- type: {
449
- name: "Sequence",
450
- element: {
451
- type: {
452
- name: "String"
453
- }
454
- }
455
- }
456
- },
457
- jars: {
458
- serializedName: "jars",
459
- type: {
460
- name: "Sequence",
461
- element: {
462
- type: {
463
- name: "String"
464
- }
465
- }
466
- }
467
- },
468
- pythonFiles: {
469
- serializedName: "pyFiles",
470
- type: {
471
- name: "Sequence",
472
- element: {
473
- type: {
474
- name: "String"
475
- }
476
- }
477
- }
478
- },
479
- files: {
480
- serializedName: "files",
481
- type: {
482
- name: "Sequence",
483
- element: {
484
- type: {
485
- name: "String"
486
- }
487
- }
488
- }
489
- },
490
- archives: {
491
- serializedName: "archives",
492
- type: {
493
- name: "Sequence",
494
- element: {
495
- type: {
496
- name: "String"
497
- }
498
- }
499
- }
500
- },
501
- configuration: {
502
- serializedName: "conf",
503
- type: {
504
- name: "Dictionary",
505
- value: { type: { name: "String" } }
506
- }
507
- },
508
- driverMemory: {
509
- serializedName: "driverMemory",
510
- type: {
511
- name: "String"
512
- }
513
- },
514
- driverCores: {
515
- serializedName: "driverCores",
516
- type: {
517
- name: "Number"
518
- }
519
- },
520
- executorMemory: {
521
- serializedName: "executorMemory",
522
- type: {
523
- name: "String"
524
- }
525
- },
526
- executorCores: {
527
- serializedName: "executorCores",
528
- type: {
529
- name: "Number"
530
- }
531
- },
532
- executorCount: {
533
- serializedName: "numExecutors",
534
- type: {
535
- name: "Number"
536
- }
537
- }
538
- }
539
- }
540
- };
541
- const SparkScheduler = {
542
- type: {
543
- name: "Composite",
544
- className: "SparkScheduler",
545
- modelProperties: {
546
- submittedAt: {
547
- serializedName: "submittedAt",
548
- nullable: true,
549
- type: {
550
- name: "DateTime"
551
- }
552
- },
553
- scheduledAt: {
554
- serializedName: "scheduledAt",
555
- nullable: true,
556
- type: {
557
- name: "DateTime"
558
- }
559
- },
560
- endedAt: {
561
- serializedName: "endedAt",
562
- nullable: true,
563
- type: {
564
- name: "DateTime"
565
- }
566
- },
567
- cancellationRequestedAt: {
568
- serializedName: "cancellationRequestedAt",
569
- nullable: true,
570
- type: {
571
- name: "DateTime"
572
- }
573
- },
574
- currentState: {
575
- serializedName: "currentState",
576
- type: {
577
- name: "String"
578
- }
579
- }
580
- }
581
- }
582
- };
583
- const SparkServicePlugin = {
584
- type: {
585
- name: "Composite",
586
- className: "SparkServicePlugin",
587
- modelProperties: {
588
- preparationStartedAt: {
589
- serializedName: "preparationStartedAt",
590
- nullable: true,
591
- type: {
592
- name: "DateTime"
593
- }
594
- },
595
- resourceAcquisitionStartedAt: {
596
- serializedName: "resourceAcquisitionStartedAt",
597
- nullable: true,
598
- type: {
599
- name: "DateTime"
600
- }
601
- },
602
- submissionStartedAt: {
603
- serializedName: "submissionStartedAt",
604
- nullable: true,
605
- type: {
606
- name: "DateTime"
607
- }
608
- },
609
- monitoringStartedAt: {
610
- serializedName: "monitoringStartedAt",
611
- nullable: true,
612
- type: {
613
- name: "DateTime"
614
- }
615
- },
616
- cleanupStartedAt: {
617
- serializedName: "cleanupStartedAt",
618
- nullable: true,
619
- type: {
620
- name: "DateTime"
621
- }
622
- },
623
- currentState: {
624
- serializedName: "currentState",
625
- type: {
626
- name: "String"
627
- }
628
- }
629
- }
630
- }
631
- };
632
- const SparkServiceError = {
633
- type: {
634
- name: "Composite",
635
- className: "SparkServiceError",
636
- modelProperties: {
637
- message: {
638
- serializedName: "message",
639
- type: {
640
- name: "String"
641
- }
642
- },
643
- errorCode: {
644
- serializedName: "errorCode",
645
- type: {
646
- name: "String"
647
- }
648
- },
649
- source: {
650
- serializedName: "source",
651
- type: {
652
- name: "String"
653
- }
654
- }
655
- }
656
- }
657
- };
658
- const SparkBatchJobOptions = {
659
- type: {
660
- name: "Composite",
661
- className: "SparkBatchJobOptions",
662
- modelProperties: {
663
- tags: {
664
- serializedName: "tags",
665
- type: {
666
- name: "Dictionary",
667
- value: { type: { name: "String" } }
668
- }
669
- },
670
- artifactId: {
671
- serializedName: "artifactId",
672
- type: {
673
- name: "String"
674
- }
675
- },
676
- name: {
677
- serializedName: "name",
678
- required: true,
679
- type: {
680
- name: "String"
681
- }
682
- },
683
- file: {
684
- serializedName: "file",
685
- required: true,
686
- type: {
687
- name: "String"
688
- }
689
- },
690
- className: {
691
- serializedName: "className",
692
- type: {
693
- name: "String"
694
- }
695
- },
696
- arguments: {
697
- serializedName: "args",
698
- type: {
699
- name: "Sequence",
700
- element: {
701
- type: {
702
- name: "String"
703
- }
704
- }
705
- }
706
- },
707
- jars: {
708
- serializedName: "jars",
709
- type: {
710
- name: "Sequence",
711
- element: {
712
- type: {
713
- name: "String"
714
- }
715
- }
716
- }
717
- },
718
- pythonFiles: {
719
- serializedName: "pyFiles",
720
- type: {
721
- name: "Sequence",
722
- element: {
723
- type: {
724
- name: "String"
725
- }
726
- }
727
- }
728
- },
729
- files: {
730
- serializedName: "files",
731
- type: {
732
- name: "Sequence",
733
- element: {
734
- type: {
735
- name: "String"
736
- }
737
- }
738
- }
739
- },
740
- archives: {
741
- serializedName: "archives",
742
- type: {
743
- name: "Sequence",
744
- element: {
745
- type: {
746
- name: "String"
747
- }
748
- }
749
- }
750
- },
751
- configuration: {
752
- serializedName: "conf",
753
- type: {
754
- name: "Dictionary",
755
- value: { type: { name: "String" } }
756
- }
757
- },
758
- driverMemory: {
759
- serializedName: "driverMemory",
760
- type: {
761
- name: "String"
762
- }
763
- },
764
- driverCores: {
765
- serializedName: "driverCores",
766
- type: {
767
- name: "Number"
768
- }
769
- },
770
- executorMemory: {
771
- serializedName: "executorMemory",
772
- type: {
773
- name: "String"
774
- }
775
- },
776
- executorCores: {
777
- serializedName: "executorCores",
778
- type: {
779
- name: "Number"
780
- }
781
- },
782
- executorCount: {
783
- serializedName: "numExecutors",
784
- type: {
785
- name: "Number"
786
- }
787
- }
788
- }
789
- }
790
- };
791
- const SparkSessionCollection = {
792
- type: {
793
- name: "Composite",
794
- className: "SparkSessionCollection",
795
- modelProperties: {
796
- from: {
797
- serializedName: "from",
798
- required: true,
799
- type: {
800
- name: "Number"
801
- }
802
- },
803
- total: {
804
- serializedName: "total",
805
- required: true,
806
- type: {
807
- name: "Number"
808
- }
809
- },
810
- sessions: {
811
- serializedName: "sessions",
812
- type: {
813
- name: "Sequence",
814
- element: {
815
- type: {
816
- name: "Composite",
817
- className: "SparkSession"
818
- }
819
- }
820
- }
821
- }
822
- }
823
- }
824
- };
825
- const SparkSession = {
826
- type: {
827
- name: "Composite",
828
- className: "SparkSession",
829
- modelProperties: {
830
- livyInfo: {
831
- serializedName: "livyInfo",
832
- type: {
833
- name: "Composite",
834
- className: "SparkSessionState"
835
- }
836
- },
837
- name: {
838
- serializedName: "name",
839
- type: {
840
- name: "String"
841
- }
842
- },
843
- workspaceName: {
844
- serializedName: "workspaceName",
845
- type: {
846
- name: "String"
847
- }
848
- },
849
- sparkPoolName: {
850
- serializedName: "sparkPoolName",
851
- type: {
852
- name: "String"
853
- }
854
- },
855
- submitterName: {
856
- serializedName: "submitterName",
857
- type: {
858
- name: "String"
859
- }
860
- },
861
- submitterId: {
862
- serializedName: "submitterId",
863
- type: {
864
- name: "String"
865
- }
866
- },
867
- artifactId: {
868
- serializedName: "artifactId",
869
- type: {
870
- name: "String"
871
- }
872
- },
873
- jobType: {
874
- serializedName: "jobType",
875
- type: {
876
- name: "String"
877
- }
878
- },
879
- result: {
880
- serializedName: "result",
881
- type: {
882
- name: "String"
883
- }
884
- },
885
- scheduler: {
886
- serializedName: "schedulerInfo",
887
- type: {
888
- name: "Composite",
889
- className: "SparkScheduler"
890
- }
891
- },
892
- plugin: {
893
- serializedName: "pluginInfo",
894
- type: {
895
- name: "Composite",
896
- className: "SparkServicePlugin"
897
- }
898
- },
899
- errors: {
900
- serializedName: "errorInfo",
901
- type: {
902
- name: "Sequence",
903
- element: {
904
- type: {
905
- name: "Composite",
906
- className: "SparkServiceError"
907
- }
908
- }
909
- }
910
- },
911
- tags: {
912
- serializedName: "tags",
913
- type: {
914
- name: "Dictionary",
915
- value: { type: { name: "String" } }
916
- }
917
- },
918
- id: {
919
- serializedName: "id",
920
- required: true,
921
- type: {
922
- name: "Number"
923
- }
924
- },
925
- appId: {
926
- serializedName: "appId",
927
- nullable: true,
928
- type: {
929
- name: "String"
930
- }
931
- },
932
- appInfo: {
933
- serializedName: "appInfo",
934
- nullable: true,
935
- type: {
936
- name: "Dictionary",
937
- value: { type: { name: "String" } }
938
- }
939
- },
940
- state: {
941
- serializedName: "state",
942
- type: {
943
- name: "String"
944
- }
945
- },
946
- logLines: {
947
- serializedName: "log",
948
- nullable: true,
949
- type: {
950
- name: "Sequence",
951
- element: {
952
- type: {
953
- name: "String"
954
- }
955
- }
956
- }
957
- }
958
- }
959
- }
960
- };
961
- const SparkSessionState = {
962
- type: {
963
- name: "Composite",
964
- className: "SparkSessionState",
965
- modelProperties: {
966
- notStartedAt: {
967
- serializedName: "notStartedAt",
968
- nullable: true,
969
- type: {
970
- name: "DateTime"
971
- }
972
- },
973
- startingAt: {
974
- serializedName: "startingAt",
975
- nullable: true,
976
- type: {
977
- name: "DateTime"
978
- }
979
- },
980
- idleAt: {
981
- serializedName: "idleAt",
982
- nullable: true,
983
- type: {
984
- name: "DateTime"
985
- }
986
- },
987
- deadAt: {
988
- serializedName: "deadAt",
989
- nullable: true,
990
- type: {
991
- name: "DateTime"
992
- }
993
- },
994
- shuttingDownAt: {
995
- serializedName: "shuttingDownAt",
996
- nullable: true,
997
- type: {
998
- name: "DateTime"
999
- }
1000
- },
1001
- terminatedAt: {
1002
- serializedName: "killedAt",
1003
- nullable: true,
1004
- type: {
1005
- name: "DateTime"
1006
- }
1007
- },
1008
- recoveringAt: {
1009
- serializedName: "recoveringAt",
1010
- nullable: true,
1011
- type: {
1012
- name: "DateTime"
1013
- }
1014
- },
1015
- busyAt: {
1016
- serializedName: "busyAt",
1017
- nullable: true,
1018
- type: {
1019
- name: "DateTime"
1020
- }
1021
- },
1022
- errorAt: {
1023
- serializedName: "errorAt",
1024
- nullable: true,
1025
- type: {
1026
- name: "DateTime"
1027
- }
1028
- },
1029
- currentState: {
1030
- serializedName: "currentState",
1031
- type: {
1032
- name: "String"
1033
- }
1034
- },
1035
- jobCreationRequest: {
1036
- serializedName: "jobCreationRequest",
1037
- type: {
1038
- name: "Composite",
1039
- className: "SparkRequest"
1040
- }
1041
- }
1042
- }
1043
- }
1044
- };
1045
- const SparkSessionOptions = {
1046
- type: {
1047
- name: "Composite",
1048
- className: "SparkSessionOptions",
1049
- modelProperties: {
1050
- tags: {
1051
- serializedName: "tags",
1052
- type: {
1053
- name: "Dictionary",
1054
- value: { type: { name: "String" } }
1055
- }
1056
- },
1057
- artifactId: {
1058
- serializedName: "artifactId",
1059
- type: {
1060
- name: "String"
1061
- }
1062
- },
1063
- name: {
1064
- serializedName: "name",
1065
- required: true,
1066
- type: {
1067
- name: "String"
1068
- }
1069
- },
1070
- file: {
1071
- serializedName: "file",
1072
- type: {
1073
- name: "String"
1074
- }
1075
- },
1076
- className: {
1077
- serializedName: "className",
1078
- type: {
1079
- name: "String"
1080
- }
1081
- },
1082
- arguments: {
1083
- serializedName: "args",
1084
- type: {
1085
- name: "Sequence",
1086
- element: {
1087
- type: {
1088
- name: "String"
1089
- }
1090
- }
1091
- }
1092
- },
1093
- jars: {
1094
- serializedName: "jars",
1095
- type: {
1096
- name: "Sequence",
1097
- element: {
1098
- type: {
1099
- name: "String"
1100
- }
1101
- }
1102
- }
1103
- },
1104
- pythonFiles: {
1105
- serializedName: "pyFiles",
1106
- type: {
1107
- name: "Sequence",
1108
- element: {
1109
- type: {
1110
- name: "String"
1111
- }
1112
- }
1113
- }
1114
- },
1115
- files: {
1116
- serializedName: "files",
1117
- type: {
1118
- name: "Sequence",
1119
- element: {
1120
- type: {
1121
- name: "String"
1122
- }
1123
- }
1124
- }
1125
- },
1126
- archives: {
1127
- serializedName: "archives",
1128
- type: {
1129
- name: "Sequence",
1130
- element: {
1131
- type: {
1132
- name: "String"
1133
- }
1134
- }
1135
- }
1136
- },
1137
- configuration: {
1138
- serializedName: "conf",
1139
- type: {
1140
- name: "Dictionary",
1141
- value: { type: { name: "String" } }
1142
- }
1143
- },
1144
- driverMemory: {
1145
- serializedName: "driverMemory",
1146
- type: {
1147
- name: "String"
1148
- }
1149
- },
1150
- driverCores: {
1151
- serializedName: "driverCores",
1152
- type: {
1153
- name: "Number"
1154
- }
1155
- },
1156
- executorMemory: {
1157
- serializedName: "executorMemory",
1158
- type: {
1159
- name: "String"
1160
- }
1161
- },
1162
- executorCores: {
1163
- serializedName: "executorCores",
1164
- type: {
1165
- name: "Number"
1166
- }
1167
- },
1168
- executorCount: {
1169
- serializedName: "numExecutors",
1170
- type: {
1171
- name: "Number"
1172
- }
1173
- }
1174
- }
1175
- }
1176
- };
1177
- const SparkStatementCollection = {
1178
- type: {
1179
- name: "Composite",
1180
- className: "SparkStatementCollection",
1181
- modelProperties: {
1182
- total: {
1183
- serializedName: "total_statements",
1184
- required: true,
1185
- type: {
1186
- name: "Number"
1187
- }
1188
- },
1189
- statements: {
1190
- serializedName: "statements",
1191
- type: {
1192
- name: "Sequence",
1193
- element: {
1194
- type: {
1195
- name: "Composite",
1196
- className: "SparkStatement"
1197
- }
1198
- }
1199
- }
1200
- }
1201
- }
1202
- }
1203
- };
1204
- const SparkStatement = {
1205
- type: {
1206
- name: "Composite",
1207
- className: "SparkStatement",
1208
- modelProperties: {
1209
- id: {
1210
- serializedName: "id",
1211
- required: true,
1212
- type: {
1213
- name: "Number"
1214
- }
1215
- },
1216
- code: {
1217
- serializedName: "code",
1218
- type: {
1219
- name: "String"
1220
- }
1221
- },
1222
- state: {
1223
- serializedName: "state",
1224
- type: {
1225
- name: "String"
1226
- }
1227
- },
1228
- output: {
1229
- serializedName: "output",
1230
- type: {
1231
- name: "Composite",
1232
- className: "SparkStatementOutput"
1233
- }
1234
- }
1235
- }
1236
- }
1237
- };
1238
- const SparkStatementOutput = {
1239
- type: {
1240
- name: "Composite",
1241
- className: "SparkStatementOutput",
1242
- modelProperties: {
1243
- status: {
1244
- serializedName: "status",
1245
- type: {
1246
- name: "String"
1247
- }
1248
- },
1249
- executionCount: {
1250
- serializedName: "execution_count",
1251
- required: true,
1252
- type: {
1253
- name: "Number"
1254
- }
1255
- },
1256
- data: {
1257
- serializedName: "data",
1258
- type: {
1259
- name: "Dictionary",
1260
- value: { type: { name: "any" } }
1261
- }
1262
- },
1263
- errorName: {
1264
- serializedName: "ename",
1265
- nullable: true,
1266
- type: {
1267
- name: "String"
1268
- }
1269
- },
1270
- errorValue: {
1271
- serializedName: "evalue",
1272
- nullable: true,
1273
- type: {
1274
- name: "String"
1275
- }
1276
- },
1277
- traceback: {
1278
- serializedName: "traceback",
1279
- nullable: true,
1280
- type: {
1281
- name: "Sequence",
1282
- element: {
1283
- type: {
1284
- name: "String"
1285
- }
1286
- }
1287
- }
1288
- }
1289
- }
1290
- }
1291
- };
1292
- const SparkStatementOptions = {
1293
- type: {
1294
- name: "Composite",
1295
- className: "SparkStatementOptions",
1296
- modelProperties: {
1297
- code: {
1298
- serializedName: "code",
1299
- type: {
1300
- name: "String"
1301
- }
1302
- },
1303
- kind: {
1304
- serializedName: "kind",
1305
- type: {
1306
- name: "String"
1307
- }
1308
- }
1309
- }
1310
- }
1311
- };
1312
- const SparkStatementCancellationResult = {
1313
- type: {
1314
- name: "Composite",
1315
- className: "SparkStatementCancellationResult",
1316
- modelProperties: {
1317
- message: {
1318
- serializedName: "msg",
1319
- type: {
1320
- name: "String"
1321
- }
1322
- }
1323
- }
1324
- }
1325
- };
1326
-
1327
- var Mappers = /*#__PURE__*/Object.freeze({
1328
- __proto__: null,
1329
- SparkBatchJob: SparkBatchJob,
1330
- SparkBatchJobCollection: SparkBatchJobCollection,
1331
- SparkBatchJobOptions: SparkBatchJobOptions,
1332
- SparkBatchJobState: SparkBatchJobState,
1333
- SparkRequest: SparkRequest,
1334
- SparkScheduler: SparkScheduler,
1335
- SparkServiceError: SparkServiceError,
1336
- SparkServicePlugin: SparkServicePlugin,
1337
- SparkSession: SparkSession,
1338
- SparkSessionCollection: SparkSessionCollection,
1339
- SparkSessionOptions: SparkSessionOptions,
1340
- SparkSessionState: SparkSessionState,
1341
- SparkStatement: SparkStatement,
1342
- SparkStatementCancellationResult: SparkStatementCancellationResult,
1343
- SparkStatementCollection: SparkStatementCollection,
1344
- SparkStatementOptions: SparkStatementOptions,
1345
- SparkStatementOutput: SparkStatementOutput
1346
- });
1347
-
1348
- /*
1349
- * Copyright (c) Microsoft Corporation.
1350
- * Licensed under the MIT License.
1351
- *
1352
- * Code generated by Microsoft (R) AutoRest Code Generator.
1353
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1354
- */
1355
- const accept = {
1356
- parameterPath: "accept",
1357
- mapper: {
1358
- defaultValue: "application/json",
1359
- isConstant: true,
1360
- serializedName: "Accept",
1361
- type: {
1362
- name: "String"
1363
- }
1364
- }
1365
- };
1366
- const endpoint = {
1367
- parameterPath: "endpoint",
1368
- mapper: {
1369
- serializedName: "endpoint",
1370
- required: true,
1371
- type: {
1372
- name: "String"
1373
- }
1374
- },
1375
- skipEncoding: true
1376
- };
1377
- const livyApiVersion = {
1378
- parameterPath: "livyApiVersion",
1379
- mapper: {
1380
- serializedName: "livyApiVersion",
1381
- required: true,
1382
- type: {
1383
- name: "String"
1384
- }
1385
- },
1386
- skipEncoding: true
1387
- };
1388
- const sparkPoolName = {
1389
- parameterPath: "sparkPoolName",
1390
- mapper: {
1391
- serializedName: "sparkPoolName",
1392
- required: true,
1393
- type: {
1394
- name: "String"
1395
- }
1396
- },
1397
- skipEncoding: true
1398
- };
1399
- const fromParam = {
1400
- parameterPath: ["options", "from"],
1401
- mapper: {
1402
- serializedName: "from",
1403
- type: {
1404
- name: "Number"
1405
- }
1406
- }
1407
- };
1408
- const size = {
1409
- parameterPath: ["options", "size"],
1410
- mapper: {
1411
- serializedName: "size",
1412
- type: {
1413
- name: "Number"
1414
- }
1415
- }
1416
- };
1417
- const detailed = {
1418
- parameterPath: ["options", "detailed"],
1419
- mapper: {
1420
- serializedName: "detailed",
1421
- type: {
1422
- name: "Boolean"
1423
- }
1424
- }
1425
- };
1426
- const contentType = {
1427
- parameterPath: ["options", "contentType"],
1428
- mapper: {
1429
- defaultValue: "application/json",
1430
- isConstant: true,
1431
- serializedName: "Content-Type",
1432
- type: {
1433
- name: "String"
1434
- }
1435
- }
1436
- };
1437
- const sparkBatchJobOptions = {
1438
- parameterPath: "sparkBatchJobOptions",
1439
- mapper: SparkBatchJobOptions
1440
- };
1441
- const batchId = {
1442
- parameterPath: "batchId",
1443
- mapper: {
1444
- serializedName: "batchId",
1445
- required: true,
1446
- type: {
1447
- name: "Number"
1448
- }
1449
- }
1450
- };
1451
- const sparkSessionOptions = {
1452
- parameterPath: "sparkSessionOptions",
1453
- mapper: SparkSessionOptions
1454
- };
1455
- const sessionId = {
1456
- parameterPath: "sessionId",
1457
- mapper: {
1458
- serializedName: "sessionId",
1459
- required: true,
1460
- type: {
1461
- name: "Number"
1462
- }
1463
- }
1464
- };
1465
- const sparkStatementOptions = {
1466
- parameterPath: "sparkStatementOptions",
1467
- mapper: SparkStatementOptions
1468
- };
1469
- const statementId = {
1470
- parameterPath: "statementId",
1471
- mapper: {
1472
- serializedName: "statementId",
1473
- required: true,
1474
- type: {
1475
- name: "Number"
1476
- }
1477
- }
1478
- };
1479
-
1480
- /*
1481
- * Copyright (c) Microsoft Corporation.
1482
- * Licensed under the MIT License.
1483
- *
1484
- * Code generated by Microsoft (R) AutoRest Code Generator.
1485
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1486
- */
1487
- /** Class containing SparkBatch operations. */
1488
- class SparkBatchImpl {
1489
- /**
1490
- * Initialize a new instance of the class SparkBatch class.
1491
- * @param client Reference to the service client
1492
- */
1493
- constructor(client) {
1494
- this.client = client;
1495
- }
1496
- /**
1497
- * List all spark batch jobs which are running under a particular spark pool.
1498
- * @param options The options parameters.
1499
- */
1500
- async getSparkBatchJobs(options) {
1501
- return tracingClient.withSpan("SparkClient.getSparkBatchJobs", options !== null && options !== void 0 ? options : {}, async (options) => {
1502
- return this.client.sendOperationRequest({ options }, getSparkBatchJobsOperationSpec);
1503
- });
1504
- }
1505
- /**
1506
- * Create new spark batch job.
1507
- * @param sparkBatchJobOptions Livy compatible batch job request payload.
1508
- * @param options The options parameters.
1509
- */
1510
- async createSparkBatchJob(sparkBatchJobOptions, options) {
1511
- return tracingClient.withSpan("SparkClient.createSparkBatchJob", options !== null && options !== void 0 ? options : {}, async (options) => {
1512
- return this.client.sendOperationRequest({ sparkBatchJobOptions, options }, createSparkBatchJobOperationSpec);
1513
- });
1514
- }
1515
- /**
1516
- * Gets a single spark batch job.
1517
- * @param batchId Identifier for the batch job.
1518
- * @param options The options parameters.
1519
- */
1520
- async getSparkBatchJob(batchId, options) {
1521
- return tracingClient.withSpan("SparkClient.getSparkBatchJob", options !== null && options !== void 0 ? options : {}, async (options) => {
1522
- return this.client.sendOperationRequest({ batchId, options }, getSparkBatchJobOperationSpec);
1523
- });
1524
- }
1525
- /**
1526
- * Cancels a running spark batch job.
1527
- * @param batchId Identifier for the batch job.
1528
- * @param options The options parameters.
1529
- */
1530
- async cancelSparkBatchJob(batchId, options) {
1531
- return tracingClient.withSpan("SparkClient.cancelSparkBatchJob", options !== null && options !== void 0 ? options : {}, async (options) => {
1532
- return this.client.sendOperationRequest({ batchId, options }, cancelSparkBatchJobOperationSpec);
1533
- });
1534
- }
1535
- }
1536
- // Operation Specifications
1537
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1538
- const getSparkBatchJobsOperationSpec = {
1539
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches",
1540
- httpMethod: "GET",
1541
- responses: {
1542
- 200: {
1543
- bodyMapper: SparkBatchJobCollection
1544
- }
1545
- },
1546
- queryParameters: [fromParam, size, detailed],
1547
- urlParameters: [
1548
- endpoint,
1549
- livyApiVersion,
1550
- sparkPoolName
1551
- ],
1552
- headerParameters: [accept],
1553
- serializer: serializer$1
1554
- };
1555
- const createSparkBatchJobOperationSpec = {
1556
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches",
1557
- httpMethod: "POST",
1558
- responses: {
1559
- 200: {
1560
- bodyMapper: SparkBatchJob
1561
- }
1562
- },
1563
- requestBody: sparkBatchJobOptions,
1564
- queryParameters: [detailed],
1565
- urlParameters: [
1566
- endpoint,
1567
- livyApiVersion,
1568
- sparkPoolName
1569
- ],
1570
- headerParameters: [accept, contentType],
1571
- mediaType: "json",
1572
- serializer: serializer$1
1573
- };
1574
- const getSparkBatchJobOperationSpec = {
1575
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches/{batchId}",
1576
- httpMethod: "GET",
1577
- responses: {
1578
- 200: {
1579
- bodyMapper: SparkBatchJob
1580
- }
1581
- },
1582
- queryParameters: [detailed],
1583
- urlParameters: [
1584
- endpoint,
1585
- livyApiVersion,
1586
- sparkPoolName,
1587
- batchId
1588
- ],
1589
- headerParameters: [accept],
1590
- serializer: serializer$1
1591
- };
1592
- const cancelSparkBatchJobOperationSpec = {
1593
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches/{batchId}",
1594
- httpMethod: "DELETE",
1595
- responses: { 200: {} },
1596
- urlParameters: [
1597
- endpoint,
1598
- livyApiVersion,
1599
- sparkPoolName,
1600
- batchId
1601
- ],
1602
- serializer: serializer$1
1603
- };
1604
-
1605
- /*
1606
- * Copyright (c) Microsoft Corporation.
1607
- * Licensed under the MIT License.
1608
- *
1609
- * Code generated by Microsoft (R) AutoRest Code Generator.
1610
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1611
- */
1612
- /** Class containing SparkSessionOperations operations. */
1613
- class SparkSessionOperationsImpl {
1614
- /**
1615
- * Initialize a new instance of the class SparkSessionOperations class.
1616
- * @param client Reference to the service client
1617
- */
1618
- constructor(client) {
1619
- this.client = client;
1620
- }
1621
- /**
1622
- * List all spark sessions which are running under a particular spark pool.
1623
- * @param options The options parameters.
1624
- */
1625
- async getSparkSessions(options) {
1626
- return tracingClient.withSpan("SparkClient.getSparkSessions", options !== null && options !== void 0 ? options : {}, async (options) => {
1627
- return this.client.sendOperationRequest({ options }, getSparkSessionsOperationSpec);
1628
- });
1629
- }
1630
- /**
1631
- * Create new spark session.
1632
- * @param sparkSessionOptions Livy compatible batch job request payload.
1633
- * @param options The options parameters.
1634
- */
1635
- async createSparkSession(sparkSessionOptions, options) {
1636
- return tracingClient.withSpan("SparkClient.createSparkSession", options !== null && options !== void 0 ? options : {}, async (options) => {
1637
- return this.client.sendOperationRequest({ sparkSessionOptions, options }, createSparkSessionOperationSpec);
1638
- });
1639
- }
1640
- /**
1641
- * Gets a single spark session.
1642
- * @param sessionId Identifier for the session.
1643
- * @param options The options parameters.
1644
- */
1645
- async getSparkSession(sessionId, options) {
1646
- return tracingClient.withSpan("SparkClient.getSparkSession", options !== null && options !== void 0 ? options : {}, async (options) => {
1647
- return this.client.sendOperationRequest({ sessionId, options }, getSparkSessionOperationSpec);
1648
- });
1649
- }
1650
- /**
1651
- * Cancels a running spark session.
1652
- * @param sessionId Identifier for the session.
1653
- * @param options The options parameters.
1654
- */
1655
- async cancelSparkSession(sessionId, options) {
1656
- return tracingClient.withSpan("SparkClient.cancelSparkSession", options !== null && options !== void 0 ? options : {}, async (options) => {
1657
- return this.client.sendOperationRequest({ sessionId, options }, cancelSparkSessionOperationSpec);
1658
- });
1659
- }
1660
- /**
1661
- * Sends a keep alive call to the current session to reset the session timeout.
1662
- * @param sessionId Identifier for the session.
1663
- * @param options The options parameters.
1664
- */
1665
- async resetSparkSessionTimeout(sessionId, options) {
1666
- return tracingClient.withSpan("SparkClient.resetSparkSessionTimeout", options !== null && options !== void 0 ? options : {}, async (options) => {
1667
- return this.client.sendOperationRequest({ sessionId, options }, resetSparkSessionTimeoutOperationSpec);
1668
- });
1669
- }
1670
- /**
1671
- * Gets a list of statements within a spark session.
1672
- * @param sessionId Identifier for the session.
1673
- * @param options The options parameters.
1674
- */
1675
- async getSparkStatements(sessionId, options) {
1676
- return tracingClient.withSpan("SparkClient.getSparkStatements", options !== null && options !== void 0 ? options : {}, async (options) => {
1677
- return this.client.sendOperationRequest({ sessionId, options }, getSparkStatementsOperationSpec);
1678
- });
1679
- }
1680
- /**
1681
- * Create statement within a spark session.
1682
- * @param sessionId Identifier for the session.
1683
- * @param sparkStatementOptions Livy compatible batch job request payload.
1684
- * @param options The options parameters.
1685
- */
1686
- async createSparkStatement(sessionId, sparkStatementOptions, options) {
1687
- return tracingClient.withSpan("SparkClient.createSparkStatement", options !== null && options !== void 0 ? options : {}, async (options) => {
1688
- return this.client.sendOperationRequest({ sessionId, sparkStatementOptions, options }, createSparkStatementOperationSpec);
1689
- });
1690
- }
1691
- /**
1692
- * Gets a single statement within a spark session.
1693
- * @param sessionId Identifier for the session.
1694
- * @param statementId Identifier for the statement.
1695
- * @param options The options parameters.
1696
- */
1697
- async getSparkStatement(sessionId, statementId, options) {
1698
- return tracingClient.withSpan("SparkClient.getSparkStatement", options !== null && options !== void 0 ? options : {}, async (options) => {
1699
- return this.client.sendOperationRequest({ sessionId, statementId, options }, getSparkStatementOperationSpec);
1700
- });
1701
- }
1702
- /**
1703
- * Kill a statement within a session.
1704
- * @param sessionId Identifier for the session.
1705
- * @param statementId Identifier for the statement.
1706
- * @param options The options parameters.
1707
- */
1708
- async cancelSparkStatement(sessionId, statementId, options) {
1709
- return tracingClient.withSpan("SparkClient.cancelSparkStatement", options !== null && options !== void 0 ? options : {}, async (options) => {
1710
- return this.client.sendOperationRequest({ sessionId, statementId, options }, cancelSparkStatementOperationSpec);
1711
- });
1712
- }
1713
- }
1714
- // Operation Specifications
1715
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1716
- const getSparkSessionsOperationSpec = {
1717
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions",
1718
- httpMethod: "GET",
1719
- responses: {
1720
- 200: {
1721
- bodyMapper: SparkSessionCollection
1722
- }
1723
- },
1724
- queryParameters: [fromParam, size, detailed],
1725
- urlParameters: [
1726
- endpoint,
1727
- livyApiVersion,
1728
- sparkPoolName
1729
- ],
1730
- headerParameters: [accept],
1731
- serializer
1732
- };
1733
- const createSparkSessionOperationSpec = {
1734
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions",
1735
- httpMethod: "POST",
1736
- responses: {
1737
- 200: {
1738
- bodyMapper: SparkSession
1739
- }
1740
- },
1741
- requestBody: sparkSessionOptions,
1742
- queryParameters: [detailed],
1743
- urlParameters: [
1744
- endpoint,
1745
- livyApiVersion,
1746
- sparkPoolName
1747
- ],
1748
- headerParameters: [accept, contentType],
1749
- mediaType: "json",
1750
- serializer
1751
- };
1752
- const getSparkSessionOperationSpec = {
1753
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}",
1754
- httpMethod: "GET",
1755
- responses: {
1756
- 200: {
1757
- bodyMapper: SparkSession
1758
- }
1759
- },
1760
- queryParameters: [detailed],
1761
- urlParameters: [
1762
- endpoint,
1763
- livyApiVersion,
1764
- sparkPoolName,
1765
- sessionId
1766
- ],
1767
- headerParameters: [accept],
1768
- serializer
1769
- };
1770
- const cancelSparkSessionOperationSpec = {
1771
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}",
1772
- httpMethod: "DELETE",
1773
- responses: { 200: {} },
1774
- urlParameters: [
1775
- endpoint,
1776
- livyApiVersion,
1777
- sparkPoolName,
1778
- sessionId
1779
- ],
1780
- serializer
1781
- };
1782
- const resetSparkSessionTimeoutOperationSpec = {
1783
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/reset-timeout",
1784
- httpMethod: "PUT",
1785
- responses: { 200: {} },
1786
- urlParameters: [
1787
- endpoint,
1788
- livyApiVersion,
1789
- sparkPoolName,
1790
- sessionId
1791
- ],
1792
- serializer
1793
- };
1794
- const getSparkStatementsOperationSpec = {
1795
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements",
1796
- httpMethod: "GET",
1797
- responses: {
1798
- 200: {
1799
- bodyMapper: SparkStatementCollection
1800
- }
1801
- },
1802
- urlParameters: [
1803
- endpoint,
1804
- livyApiVersion,
1805
- sparkPoolName,
1806
- sessionId
1807
- ],
1808
- headerParameters: [accept],
1809
- serializer
1810
- };
1811
- const createSparkStatementOperationSpec = {
1812
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements",
1813
- httpMethod: "POST",
1814
- responses: {
1815
- 200: {
1816
- bodyMapper: SparkStatement
1817
- }
1818
- },
1819
- requestBody: sparkStatementOptions,
1820
- urlParameters: [
1821
- endpoint,
1822
- livyApiVersion,
1823
- sparkPoolName,
1824
- sessionId
1825
- ],
1826
- headerParameters: [accept, contentType],
1827
- mediaType: "json",
1828
- serializer
1829
- };
1830
- const getSparkStatementOperationSpec = {
1831
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}",
1832
- httpMethod: "GET",
1833
- responses: {
1834
- 200: {
1835
- bodyMapper: SparkStatement
1836
- }
1837
- },
1838
- urlParameters: [
1839
- endpoint,
1840
- livyApiVersion,
1841
- sparkPoolName,
1842
- sessionId,
1843
- statementId
1844
- ],
1845
- headerParameters: [accept],
1846
- serializer
1847
- };
1848
- const cancelSparkStatementOperationSpec = {
1849
- path: "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}/cancel",
1850
- httpMethod: "POST",
1851
- responses: {
1852
- 200: {
1853
- bodyMapper: SparkStatementCancellationResult
1854
- }
1855
- },
1856
- urlParameters: [
1857
- endpoint,
1858
- livyApiVersion,
1859
- sparkPoolName,
1860
- sessionId,
1861
- statementId
1862
- ],
1863
- headerParameters: [accept],
1864
- serializer
1865
- };
1866
-
1867
- /*
1868
- * Copyright (c) Microsoft Corporation.
1869
- * Licensed under the MIT License.
1870
- *
1871
- * Code generated by Microsoft (R) AutoRest Code Generator.
1872
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1873
- */
1874
- /**
1875
- * Represents the Synapse Spark client operations.
1876
- */
1877
- class SparkClient extends coreClient__namespace.ServiceClient {
1878
- /**
1879
- * Initializes a new instance of the SparkClient class.
1880
- * @param credentials Subscription credentials which uniquely identify client subscription.
1881
- * @param endpoint The workspace development endpoint, for example
1882
- * https://myworkspace.dev.azuresynapse.net.
1883
- * @param sparkPoolName Name of the spark pool.
1884
- * @param options The parameter options
1885
- */
1886
- constructor(credentials, endpoint, sparkPoolName, options) {
1887
- var _a, _b;
1888
- if (credentials === undefined) {
1889
- throw new Error("'credentials' cannot be null");
1890
- }
1891
- if (endpoint === undefined) {
1892
- throw new Error("'endpoint' cannot be null");
1893
- }
1894
- if (sparkPoolName === undefined) {
1895
- throw new Error("'sparkPoolName' cannot be null");
1896
- }
1897
- // Initializing default values for options
1898
- if (!options) {
1899
- options = {};
1900
- }
1901
- const defaults = {
1902
- requestContentType: "application/json; charset=utf-8",
1903
- credential: credentials
1904
- };
1905
- const packageDetails = `azsdk-js-synapse-spark/1.0.0-beta.6`;
1906
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1907
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1908
- : `${packageDetails}`;
1909
- if (!options.credentialScopes) {
1910
- options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
1911
- }
1912
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1913
- userAgentPrefix
1914
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
1915
- super(optionsWithDefaults);
1916
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1917
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1918
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1919
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1920
- if (!bearerTokenAuthenticationPolicyFound) {
1921
- this.pipeline.removePolicy({
1922
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1923
- });
1924
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1925
- scopes: `${optionsWithDefaults.baseUri}/.default`,
1926
- challengeCallbacks: {
1927
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1928
- }
1929
- }));
1930
- }
1931
- }
1932
- // Parameter assignments
1933
- this.endpoint = endpoint;
1934
- this.sparkPoolName = sparkPoolName;
1935
- // Assigning values to Constant parameters
1936
- this.livyApiVersion = options.livyApiVersion || "2019-11-01-preview";
1937
- this.sparkBatch = new SparkBatchImpl(this);
1938
- this.sparkSessionOperations = new SparkSessionOperationsImpl(this);
1939
- }
1940
- }
1941
-
1942
- exports.SparkClient = SparkClient;
1943
- //# sourceMappingURL=index.js.map