@azure/synapse-spark 1.0.0-beta.3 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +14 -13
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +11 -0
- package/dist/browser/index.js.map +1 -0
- package/{types/synapse-spark.d.ts → dist/browser/models/index.d.ts} +548 -621
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +134 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +19 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +1151 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +16 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +133 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +10 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/sparkBatch.d.ts +36 -0
- package/dist/browser/operations/sparkBatch.d.ts.map +1 -0
- package/dist/browser/operations/sparkBatch.js +122 -0
- package/dist/browser/operations/sparkBatch.js.map +1 -0
- package/dist/browser/operations/sparkSessionOperations.d.ts +69 -0
- package/dist/browser/operations/sparkSessionOperations.d.ts.map +1 -0
- package/dist/browser/operations/sparkSessionOperations.js +259 -0
- package/dist/browser/operations/sparkSessionOperations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +10 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/sparkBatch.d.ts +28 -0
- package/dist/browser/operationsInterfaces/sparkBatch.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sparkBatch.js +9 -0
- package/dist/browser/operationsInterfaces/sparkBatch.js.map +1 -0
- package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
- package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sparkSessionOperations.js +9 -0
- package/dist/browser/operationsInterfaces/sparkSessionOperations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/sparkClient.d.ts +24 -0
- package/dist/browser/sparkClient.d.ts.map +1 -0
- package/dist/browser/sparkClient.js +86 -0
- package/dist/browser/sparkClient.js.map +1 -0
- package/dist/browser/tracing.d.ts +2 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/dist/browser/tracing.js +14 -0
- package/dist/browser/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +548 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +137 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +19 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1154 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +16 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +136 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/sparkBatch.d.ts +36 -0
- package/dist/commonjs/operations/sparkBatch.d.ts.map +1 -0
- package/dist/commonjs/operations/sparkBatch.js +127 -0
- package/dist/commonjs/operations/sparkBatch.js.map +1 -0
- package/dist/commonjs/operations/sparkSessionOperations.d.ts +69 -0
- package/dist/commonjs/operations/sparkSessionOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/sparkSessionOperations.js +264 -0
- package/dist/commonjs/operations/sparkSessionOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts +28 -0
- package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/sparkBatch.js +10 -0
- package/dist/commonjs/operationsInterfaces/sparkBatch.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
- package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sparkClient.d.ts +24 -0
- package/dist/commonjs/sparkClient.d.ts.map +1 -0
- package/dist/commonjs/sparkClient.js +91 -0
- package/dist/commonjs/sparkClient.js.map +1 -0
- package/dist/commonjs/tracing.d.ts +2 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +17 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +548 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +134 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +19 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1151 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +16 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +133 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/sparkBatch.d.ts +36 -0
- package/dist/esm/operations/sparkBatch.d.ts.map +1 -0
- package/dist/esm/operations/sparkBatch.js +122 -0
- package/dist/esm/operations/sparkBatch.js.map +1 -0
- package/dist/esm/operations/sparkSessionOperations.d.ts +69 -0
- package/dist/esm/operations/sparkSessionOperations.d.ts.map +1 -0
- package/dist/esm/operations/sparkSessionOperations.js +259 -0
- package/dist/esm/operations/sparkSessionOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/sparkBatch.d.ts +28 -0
- package/dist/esm/operationsInterfaces/sparkBatch.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/sparkBatch.js +9 -0
- package/dist/esm/operationsInterfaces/sparkBatch.js.map +1 -0
- package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
- package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/sparkSessionOperations.js +9 -0
- package/dist/esm/operationsInterfaces/sparkSessionOperations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sparkClient.d.ts +24 -0
- package/dist/esm/sparkClient.d.ts.map +1 -0
- package/dist/esm/sparkClient.js +86 -0
- package/dist/esm/sparkClient.js.map +1 -0
- package/dist/esm/tracing.d.ts +2 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +14 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +548 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +134 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +19 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1151 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +16 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +133 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/sparkBatch.d.ts +36 -0
- package/dist/react-native/operations/sparkBatch.d.ts.map +1 -0
- package/dist/react-native/operations/sparkBatch.js +122 -0
- package/dist/react-native/operations/sparkBatch.js.map +1 -0
- package/dist/react-native/operations/sparkSessionOperations.d.ts +69 -0
- package/dist/react-native/operations/sparkSessionOperations.d.ts.map +1 -0
- package/dist/react-native/operations/sparkSessionOperations.js +259 -0
- package/dist/react-native/operations/sparkSessionOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/sparkBatch.d.ts +28 -0
- package/dist/react-native/operationsInterfaces/sparkBatch.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/sparkBatch.js +9 -0
- package/dist/react-native/operationsInterfaces/sparkBatch.js.map +1 -0
- package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
- package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/sparkSessionOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/sparkSessionOperations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/sparkClient.d.ts +24 -0
- package/dist/react-native/sparkClient.d.ts.map +1 -0
- package/dist/react-native/sparkClient.js +86 -0
- package/dist/react-native/sparkClient.js.map +1 -0
- package/dist/react-native/tracing.d.ts +2 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +14 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/package.json +83 -79
- package/CHANGELOG.md +0 -17
- package/dist/index.js +0 -1995
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/rollup.config.js +0 -3
- package/tsconfig.json +0 -19
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Microsoft
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ npm install @azure/synapse-spark
|
|
|
12
12
|
|
|
13
13
|
### Currently supported environments
|
|
14
14
|
|
|
15
|
-
- [LTS versions of Node.js](https://
|
|
15
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
16
16
|
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
|
17
17
|
|
|
18
18
|
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
@@ -23,16 +23,21 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
|
23
23
|
|
|
24
24
|
## Examples
|
|
25
25
|
|
|
26
|
-
```ts
|
|
26
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
27
27
|
import { SparkClient } from "@azure/synapse-spark";
|
|
28
28
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
const client = new SparkClient(
|
|
31
|
+
new DefaultAzureCredential(),
|
|
32
|
+
"https://mysynapse.dev.azuresynapse.net",
|
|
33
|
+
"mysparkpool",
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
const output = await client.sparkBatch.getSparkBatchJobs();
|
|
37
|
+
if (output.sessions) {
|
|
38
|
+
for (const sparkBatchJob of output.sessions) {
|
|
39
|
+
console.log(`Spark batch job name: ${sparkBatchJob.name}`);
|
|
40
|
+
}
|
|
36
41
|
}
|
|
37
42
|
```
|
|
38
43
|
|
|
@@ -40,13 +45,11 @@ export async function main(): Promise<void> {
|
|
|
40
45
|
|
|
41
46
|
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
|
|
42
47
|
|
|
43
|
-

|
|
44
|
-
|
|
45
48
|
## Troubleshooting
|
|
46
49
|
|
|
47
50
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
48
51
|
|
|
49
|
-
```
|
|
52
|
+
```ts snippet:SetLogLevel
|
|
50
53
|
import { setLogLevel } from "@azure/logger";
|
|
51
54
|
|
|
52
55
|
setLogLevel("info");
|
|
@@ -59,5 +62,3 @@ In the future, you'll find additional code samples here.
|
|
|
59
62
|
## Contributing
|
|
60
63
|
|
|
61
64
|
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
62
|
-
|
|
63
|
-

|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export * from "./models/index.js";
|
|
9
|
+
export { SparkClient } from "./sparkClient.js";
|
|
10
|
+
export * from "./operationsInterfaces/index.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { SparkClient } from \"./sparkClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|