@azure/synapse-artifacts 1.0.0-beta.6 → 1.0.0-beta.9

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 (66) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +1 -1
  3. package/dist/index.js +1597 -611
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/src/artifactsClient.js +31 -4
  6. package/dist-esm/src/artifactsClient.js.map +1 -1
  7. package/dist-esm/src/index.js +0 -1
  8. package/dist-esm/src/index.js.map +1 -1
  9. package/dist-esm/src/models/index.js +83 -0
  10. package/dist-esm/src/models/index.js.map +1 -1
  11. package/dist-esm/src/models/mappers.js +792 -317
  12. package/dist-esm/src/models/mappers.js.map +1 -1
  13. package/dist-esm/src/models/parameters.js +43 -3
  14. package/dist-esm/src/models/parameters.js.map +1 -1
  15. package/dist-esm/src/operations/bigDataPools.js +2 -2
  16. package/dist-esm/src/operations/bigDataPools.js.map +1 -1
  17. package/dist-esm/src/operations/dataFlowDebugSession.js +6 -6
  18. package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
  19. package/dist-esm/src/operations/dataFlowOperations.js +6 -6
  20. package/dist-esm/src/operations/dataFlowOperations.js.map +1 -1
  21. package/dist-esm/src/operations/datasetOperations.js +6 -6
  22. package/dist-esm/src/operations/datasetOperations.js.map +1 -1
  23. package/dist-esm/src/operations/index.js +1 -0
  24. package/dist-esm/src/operations/index.js.map +1 -1
  25. package/dist-esm/src/operations/integrationRuntimes.js +2 -2
  26. package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
  27. package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -1
  28. package/dist-esm/src/operations/kqlScripts.js.map +1 -1
  29. package/dist-esm/src/operations/library.js +8 -8
  30. package/dist-esm/src/operations/library.js.map +1 -1
  31. package/dist-esm/src/operations/linkedServiceOperations.js +6 -6
  32. package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -1
  33. package/dist-esm/src/operations/metastore.js +182 -0
  34. package/dist-esm/src/operations/metastore.js.map +1 -0
  35. package/dist-esm/src/operations/notebookOperationResult.js +1 -1
  36. package/dist-esm/src/operations/notebookOperationResult.js.map +1 -1
  37. package/dist-esm/src/operations/notebookOperations.js +8 -8
  38. package/dist-esm/src/operations/notebookOperations.js.map +1 -1
  39. package/dist-esm/src/operations/pipelineOperations.js +7 -7
  40. package/dist-esm/src/operations/pipelineOperations.js.map +1 -1
  41. package/dist-esm/src/operations/pipelineRunOperations.js +4 -4
  42. package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -1
  43. package/dist-esm/src/operations/sparkConfigurationOperations.js +6 -6
  44. package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -1
  45. package/dist-esm/src/operations/sparkJobDefinitionOperations.js +8 -8
  46. package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -1
  47. package/dist-esm/src/operations/sqlPools.js +2 -2
  48. package/dist-esm/src/operations/sqlPools.js.map +1 -1
  49. package/dist-esm/src/operations/sqlScriptOperations.js +6 -6
  50. package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -1
  51. package/dist-esm/src/operations/triggerOperations.js +10 -10
  52. package/dist-esm/src/operations/triggerOperations.js.map +1 -1
  53. package/dist-esm/src/operations/triggerRunOperations.js +3 -3
  54. package/dist-esm/src/operations/triggerRunOperations.js.map +1 -1
  55. package/dist-esm/src/operations/workspaceGitRepoManagement.js +1 -1
  56. package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -1
  57. package/dist-esm/src/operations/workspaceOperations.js +1 -1
  58. package/dist-esm/src/operations/workspaceOperations.js.map +1 -1
  59. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  61. package/dist-esm/src/operationsInterfaces/metastore.js +9 -0
  62. package/dist-esm/src/operationsInterfaces/metastore.js.map +1 -0
  63. package/package.json +17 -18
  64. package/types/synapse-artifacts.d.ts +511 -94
  65. package/dist-esm/src/artifactsClientContext.js +0 -47
  66. package/dist-esm/src/artifactsClientContext.js.map +0 -1
@@ -5,9 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { KqlScriptsImpl, KqlScriptOperationsImpl, SparkConfigurationOperationsImpl, BigDataPoolsImpl, DataFlowOperationsImpl, DataFlowDebugSessionImpl, DatasetOperationsImpl, WorkspaceGitRepoManagementImpl, IntegrationRuntimesImpl, LibraryImpl, LinkedServiceOperationsImpl, NotebookOperationsImpl, NotebookOperationResultImpl, PipelineOperationsImpl, PipelineRunOperationsImpl, SparkJobDefinitionOperationsImpl, SqlPoolsImpl, SqlScriptOperationsImpl, TriggerOperationsImpl, TriggerRunOperationsImpl, WorkspaceOperationsImpl } from "./operations";
9
- import { ArtifactsClientContext } from "./artifactsClientContext";
10
- export class ArtifactsClient extends ArtifactsClientContext {
8
+ import * as coreClient from "@azure/core-client";
9
+ import { KqlScriptsImpl, KqlScriptOperationsImpl, MetastoreImpl, SparkConfigurationOperationsImpl, BigDataPoolsImpl, DataFlowOperationsImpl, DataFlowDebugSessionImpl, DatasetOperationsImpl, WorkspaceGitRepoManagementImpl, IntegrationRuntimesImpl, LibraryImpl, LinkedServiceOperationsImpl, NotebookOperationsImpl, NotebookOperationResultImpl, PipelineOperationsImpl, PipelineRunOperationsImpl, SparkJobDefinitionOperationsImpl, SqlPoolsImpl, SqlScriptOperationsImpl, TriggerOperationsImpl, TriggerRunOperationsImpl, WorkspaceOperationsImpl } from "./operations";
10
+ export class ArtifactsClient extends coreClient.ServiceClient {
11
11
  /**
12
12
  * Initializes a new instance of the ArtifactsClient class.
13
13
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,9 +16,36 @@ export class ArtifactsClient extends ArtifactsClientContext {
16
16
  * @param options The parameter options
17
17
  */
18
18
  constructor(credentials, endpoint, options) {
19
- super(credentials, endpoint, options);
19
+ if (credentials === undefined) {
20
+ throw new Error("'credentials' cannot be null");
21
+ }
22
+ if (endpoint === undefined) {
23
+ throw new Error("'endpoint' cannot be null");
24
+ }
25
+ // Initializing default values for options
26
+ if (!options) {
27
+ options = {};
28
+ }
29
+ const defaults = {
30
+ requestContentType: "application/json; charset=utf-8",
31
+ credential: credentials
32
+ };
33
+ const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.9`;
34
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
+ : `${packageDetails}`;
37
+ if (!options.credentialScopes) {
38
+ options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
39
+ }
40
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
+ userAgentPrefix
42
+ }, baseUri: options.endpoint || "{endpoint}" });
43
+ super(optionsWithDefaults);
44
+ // Parameter assignments
45
+ this.endpoint = endpoint;
20
46
  this.kqlScripts = new KqlScriptsImpl(this);
21
47
  this.kqlScriptOperations = new KqlScriptOperationsImpl(this);
48
+ this.metastore = new MetastoreImpl(this);
22
49
  this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this);
23
50
  this.bigDataPools = new BigDataPoolsImpl(this);
24
51
  this.dataFlowOperations = new DataFlowOperationsImpl(this);
@@ -1 +1 @@
1
- {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,gCAAgC,EAChC,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,WAAW,EACX,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,YAAY,EACZ,uBAAuB,EACvB,qBAAqB,EACrB,wB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AAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,qBAAqB,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;CAuBF","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\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n KqlScriptsImpl,\n KqlScriptOperationsImpl,\n SparkConfigurationOperationsImpl,\n BigDataPoolsImpl,\n DataFlowOperationsImpl,\n DataFlowDebugSessionImpl,\n DatasetOperationsImpl,\n WorkspaceGitRepoManagementImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n LinkedServiceOperationsImpl,\n NotebookOperationsImpl,\n NotebookOperationResultImpl,\n PipelineOperationsImpl,\n PipelineRunOperationsImpl,\n SparkJobDefinitionOperationsImpl,\n SqlPoolsImpl,\n SqlScriptOperationsImpl,\n TriggerOperationsImpl,\n TriggerRunOperationsImpl,\n WorkspaceOperationsImpl\n} from \"./operations\";\nimport {\n KqlScripts,\n KqlScriptOperations,\n SparkConfigurationOperations,\n BigDataPools,\n DataFlowOperations,\n DataFlowDebugSession,\n DatasetOperations,\n WorkspaceGitRepoManagement,\n IntegrationRuntimes,\n Library,\n LinkedServiceOperations,\n NotebookOperations,\n NotebookOperationResult,\n PipelineOperations,\n PipelineRunOperations,\n SparkJobDefinitionOperations,\n SqlPools,\n SqlScriptOperations,\n TriggerOperations,\n TriggerRunOperations,\n WorkspaceOperations\n} from \"./operationsInterfaces\";\nimport { ArtifactsClientContext } from \"./artifactsClientContext\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\n\nexport class ArtifactsClient extends ArtifactsClientContext {\n /**\n * Initializes a new instance of the ArtifactsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param endpoint The workspace development endpoint, for example\n * https://myworkspace.dev.azuresynapse.net.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ArtifactsClientOptionalParams\n ) {\n super(credentials, endpoint, options);\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(\n this\n );\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.dataFlowOperations = new DataFlowOperationsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.datasetOperations = new DatasetOperationsImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);\n this.notebookOperations = new NotebookOperationsImpl(this);\n this.notebookOperationResult = new NotebookOperationResultImpl(this);\n this.pipelineOperations = new PipelineOperationsImpl(this);\n this.pipelineRunOperations = new PipelineRunOperationsImpl(this);\n this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(\n this\n );\n this.sqlPools = new SqlPoolsImpl(this);\n this.sqlScriptOperations = new SqlScriptOperationsImpl(this);\n this.triggerOperations = new TriggerOperationsImpl(this);\n this.triggerRunOperations = new TriggerRunOperationsImpl(this);\n this.workspaceOperations = new WorkspaceOperationsImpl(this);\n }\n\n kqlScripts: KqlScripts;\n kqlScriptOperations: KqlScriptOperations;\n sparkConfigurationOperations: SparkConfigurationOperations;\n bigDataPools: BigDataPools;\n dataFlowOperations: DataFlowOperations;\n dataFlowDebugSession: DataFlowDebugSession;\n datasetOperations: DatasetOperations;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n linkedServiceOperations: LinkedServiceOperations;\n notebookOperations: NotebookOperations;\n notebookOperationResult: NotebookOperationResult;\n pipelineOperations: PipelineOperations;\n pipelineRunOperations: PipelineRunOperations;\n sparkJobDefinitionOperations: SparkJobDefinitionOperations;\n sqlPools: SqlPools;\n sqlScriptOperations: SqlScriptOperations;\n triggerOperations: TriggerOperations;\n triggerRunOperations: TriggerRunOperations;\n workspaceOperations: WorkspaceOperations;\n}\n"]}
1
+ {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,gCAAgC,EAChC,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,WAAW,EACX,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,YAAY,EACZ,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AA2BtB,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAG3D;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,QAAgB,EAChB,OAAuC;QAEvC,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,C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right (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\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n KqlScriptsImpl,\n KqlScriptOperationsImpl,\n MetastoreImpl,\n SparkConfigurationOperationsImpl,\n BigDataPoolsImpl,\n DataFlowOperationsImpl,\n DataFlowDebugSessionImpl,\n DatasetOperationsImpl,\n WorkspaceGitRepoManagementImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n LinkedServiceOperationsImpl,\n NotebookOperationsImpl,\n NotebookOperationResultImpl,\n PipelineOperationsImpl,\n PipelineRunOperationsImpl,\n SparkJobDefinitionOperationsImpl,\n SqlPoolsImpl,\n SqlScriptOperationsImpl,\n TriggerOperationsImpl,\n TriggerRunOperationsImpl,\n WorkspaceOperationsImpl\n} from \"./operations\";\nimport {\n KqlScripts,\n KqlScriptOperations,\n Metastore,\n SparkConfigurationOperations,\n BigDataPools,\n DataFlowOperations,\n DataFlowDebugSession,\n DatasetOperations,\n WorkspaceGitRepoManagement,\n IntegrationRuntimes,\n Library,\n LinkedServiceOperations,\n NotebookOperations,\n NotebookOperationResult,\n PipelineOperations,\n PipelineRunOperations,\n SparkJobDefinitionOperations,\n SqlPools,\n SqlScriptOperations,\n TriggerOperations,\n TriggerRunOperations,\n WorkspaceOperations\n} from \"./operationsInterfaces\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\n\nexport class ArtifactsClient extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param endpoint The workspace development endpoint, for example\n * https://myworkspace.dev.azuresynapse.net.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ArtifactsClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ArtifactsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.9`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.metastore = new MetastoreImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(\n this\n );\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.dataFlowOperations = new DataFlowOperationsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.datasetOperations = new DatasetOperationsImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);\n this.notebookOperations = new NotebookOperationsImpl(this);\n this.notebookOperationResult = new NotebookOperationResultImpl(this);\n this.pipelineOperations = new PipelineOperationsImpl(this);\n this.pipelineRunOperations = new PipelineRunOperationsImpl(this);\n this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(\n this\n );\n this.sqlPools = new SqlPoolsImpl(this);\n this.sqlScriptOperations = new SqlScriptOperationsImpl(this);\n this.triggerOperations = new TriggerOperationsImpl(this);\n this.triggerRunOperations = new TriggerRunOperationsImpl(this);\n this.workspaceOperations = new WorkspaceOperationsImpl(this);\n }\n\n kqlScripts: KqlScripts;\n kqlScriptOperations: KqlScriptOperations;\n metastore: Metastore;\n sparkConfigurationOperations: SparkConfigurationOperations;\n bigDataPools: BigDataPools;\n dataFlowOperations: DataFlowOperations;\n dataFlowDebugSession: DataFlowDebugSession;\n datasetOperations: DatasetOperations;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n linkedServiceOperations: LinkedServiceOperations;\n notebookOperations: NotebookOperations;\n notebookOperationResult: NotebookOperationResult;\n pipelineOperations: PipelineOperations;\n pipelineRunOperations: PipelineRunOperations;\n sparkJobDefinitionOperations: SparkJobDefinitionOperations;\n sqlPools: SqlPools;\n sqlScriptOperations: SqlScriptOperations;\n triggerOperations: TriggerOperations;\n triggerRunOperations: TriggerRunOperations;\n workspaceOperations: WorkspaceOperations;\n}\n"]}
@@ -8,6 +8,5 @@
8
8
  /// <reference lib="esnext.asynciterable" />
9
9
  export * from "./models";
10
10
  export { ArtifactsClient } from "./artifactsClient";
11
- export { ArtifactsClientContext } from "./artifactsClientContext";
12
11
  export * from "./operationsInterfaces";
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,wBAAwB,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport * from \"./models\";\nexport { ArtifactsClient } from \"./artifactsClient\";\nexport { ArtifactsClientContext } from \"./artifactsClientContext\";\nexport * from \"./operationsInterfaces\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,wBAAwB,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport * from \"./models\";\nexport { ArtifactsClient } from \"./artifactsClient\";\nexport * from \"./operationsInterfaces\";\n"]}
@@ -5,6 +5,20 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
+ /** Known values of {@link RequestStatus} that the service accepts. */
9
+ export var KnownRequestStatus;
10
+ (function (KnownRequestStatus) {
11
+ KnownRequestStatus["Running"] = "Running";
12
+ KnownRequestStatus["Completed"] = "Completed";
13
+ KnownRequestStatus["Failed"] = "Failed";
14
+ })(KnownRequestStatus || (KnownRequestStatus = {}));
15
+ /** Known values of {@link ResourceStatus} that the service accepts. */
16
+ export var KnownResourceStatus;
17
+ (function (KnownResourceStatus) {
18
+ KnownResourceStatus["Creating"] = "Creating";
19
+ KnownResourceStatus["Created"] = "Created";
20
+ KnownResourceStatus["Failed"] = "Failed";
21
+ })(KnownResourceStatus || (KnownResourceStatus = {}));
8
22
  /** Known values of {@link NodeSize} that the service accepts. */
9
23
  export var KnownNodeSize;
10
24
  (function (KnownNodeSize) {
@@ -183,6 +197,14 @@ export var KnownLivyStates;
183
197
  KnownLivyStates["Running"] = "running";
184
198
  KnownLivyStates["Recovering"] = "recovering";
185
199
  })(KnownLivyStates || (KnownLivyStates = {}));
200
+ /** Known values of {@link CreateMode} that the service accepts. */
201
+ export var KnownCreateMode;
202
+ (function (KnownCreateMode) {
203
+ KnownCreateMode["Default"] = "Default";
204
+ KnownCreateMode["PointInTimeRestore"] = "PointInTimeRestore";
205
+ KnownCreateMode["Recovery"] = "Recovery";
206
+ KnownCreateMode["Restore"] = "Restore";
207
+ })(KnownCreateMode || (KnownCreateMode = {}));
186
208
  /** Known values of {@link SqlScriptType} that the service accepts. */
187
209
  export var KnownSqlScriptType;
188
210
  (function (KnownSqlScriptType) {
@@ -305,6 +327,18 @@ export var KnownRestServiceAuthenticationType;
305
327
  KnownRestServiceAuthenticationType["AadServicePrincipal"] = "AadServicePrincipal";
306
328
  KnownRestServiceAuthenticationType["ManagedServiceIdentity"] = "ManagedServiceIdentity";
307
329
  })(KnownRestServiceAuthenticationType || (KnownRestServiceAuthenticationType = {}));
330
+ /** Known values of {@link TeamDeskAuthenticationType} that the service accepts. */
331
+ export var KnownTeamDeskAuthenticationType;
332
+ (function (KnownTeamDeskAuthenticationType) {
333
+ KnownTeamDeskAuthenticationType["Basic"] = "Basic";
334
+ KnownTeamDeskAuthenticationType["Token"] = "Token";
335
+ })(KnownTeamDeskAuthenticationType || (KnownTeamDeskAuthenticationType = {}));
336
+ /** Known values of {@link ZendeskAuthenticationType} that the service accepts. */
337
+ export var KnownZendeskAuthenticationType;
338
+ (function (KnownZendeskAuthenticationType) {
339
+ KnownZendeskAuthenticationType["Basic"] = "Basic";
340
+ KnownZendeskAuthenticationType["Token"] = "Token";
341
+ })(KnownZendeskAuthenticationType || (KnownZendeskAuthenticationType = {}));
308
342
  /** Known values of {@link HttpAuthenticationType} that the service accepts. */
309
343
  export var KnownHttpAuthenticationType;
310
344
  (function (KnownHttpAuthenticationType) {
@@ -489,6 +523,14 @@ export var KnownNetezzaPartitionOption;
489
523
  KnownNetezzaPartitionOption["DataSlice"] = "DataSlice";
490
524
  KnownNetezzaPartitionOption["DynamicRange"] = "DynamicRange";
491
525
  })(KnownNetezzaPartitionOption || (KnownNetezzaPartitionOption = {}));
526
+ /** Known values of {@link NotebookParameterType} that the service accepts. */
527
+ export var KnownNotebookParameterType;
528
+ (function (KnownNotebookParameterType) {
529
+ KnownNotebookParameterType["String"] = "string";
530
+ KnownNotebookParameterType["Int"] = "int";
531
+ KnownNotebookParameterType["Float"] = "float";
532
+ KnownNotebookParameterType["Bool"] = "bool";
533
+ })(KnownNotebookParameterType || (KnownNotebookParameterType = {}));
492
534
  /** Known values of {@link SapCloudForCustomerSinkWriteBehavior} that the service accepts. */
493
535
  export var KnownSapCloudForCustomerSinkWriteBehavior;
494
536
  (function (KnownSapCloudForCustomerSinkWriteBehavior) {
@@ -569,6 +611,41 @@ export var KnownDataFlowComputeType;
569
611
  KnownDataFlowComputeType["MemoryOptimized"] = "MemoryOptimized";
570
612
  KnownDataFlowComputeType["ComputeOptimized"] = "ComputeOptimized";
571
613
  })(KnownDataFlowComputeType || (KnownDataFlowComputeType = {}));
614
+ /** Known values of {@link ScriptType} that the service accepts. */
615
+ export var KnownScriptType;
616
+ (function (KnownScriptType) {
617
+ KnownScriptType["Query"] = "Query";
618
+ KnownScriptType["NonQuery"] = "NonQuery";
619
+ })(KnownScriptType || (KnownScriptType = {}));
620
+ /** Known values of {@link ScriptActivityParameterType} that the service accepts. */
621
+ export var KnownScriptActivityParameterType;
622
+ (function (KnownScriptActivityParameterType) {
623
+ KnownScriptActivityParameterType["Boolean"] = "Boolean";
624
+ KnownScriptActivityParameterType["DateTime"] = "DateTime";
625
+ KnownScriptActivityParameterType["DateTimeOffset"] = "DateTimeOffset";
626
+ KnownScriptActivityParameterType["Decimal"] = "Decimal";
627
+ KnownScriptActivityParameterType["Double"] = "Double";
628
+ KnownScriptActivityParameterType["Guid"] = "Guid";
629
+ KnownScriptActivityParameterType["Int16"] = "Int16";
630
+ KnownScriptActivityParameterType["Int32"] = "Int32";
631
+ KnownScriptActivityParameterType["Int64"] = "Int64";
632
+ KnownScriptActivityParameterType["Single"] = "Single";
633
+ KnownScriptActivityParameterType["String"] = "String";
634
+ KnownScriptActivityParameterType["Timespan"] = "Timespan";
635
+ })(KnownScriptActivityParameterType || (KnownScriptActivityParameterType = {}));
636
+ /** Known values of {@link ScriptActivityParameterDirection} that the service accepts. */
637
+ export var KnownScriptActivityParameterDirection;
638
+ (function (KnownScriptActivityParameterDirection) {
639
+ KnownScriptActivityParameterDirection["Input"] = "Input";
640
+ KnownScriptActivityParameterDirection["Output"] = "Output";
641
+ KnownScriptActivityParameterDirection["InputOutput"] = "InputOutput";
642
+ })(KnownScriptActivityParameterDirection || (KnownScriptActivityParameterDirection = {}));
643
+ /** Known values of {@link ScriptActivityLogDestination} that the service accepts. */
644
+ export var KnownScriptActivityLogDestination;
645
+ (function (KnownScriptActivityLogDestination) {
646
+ KnownScriptActivityLogDestination["ActivityOutput"] = "ActivityOutput";
647
+ KnownScriptActivityLogDestination["ExternalStore"] = "ExternalStore";
648
+ })(KnownScriptActivityLogDestination || (KnownScriptActivityLogDestination = {}));
572
649
  /** Known values of {@link RecurrenceFrequency} that the service accepts. */
573
650
  export var KnownRecurrenceFrequency;
574
651
  (function (KnownRecurrenceFrequency) {
@@ -702,6 +779,12 @@ export var KnownDynamicsAuthenticationType;
702
779
  KnownDynamicsAuthenticationType["Ifd"] = "Ifd";
703
780
  KnownDynamicsAuthenticationType["AADServicePrincipal"] = "AADServicePrincipal";
704
781
  })(KnownDynamicsAuthenticationType || (KnownDynamicsAuthenticationType = {}));
782
+ /** Known values of {@link DynamicsServicePrincipalCredentialType} that the service accepts. */
783
+ export var KnownDynamicsServicePrincipalCredentialType;
784
+ (function (KnownDynamicsServicePrincipalCredentialType) {
785
+ KnownDynamicsServicePrincipalCredentialType["ServicePrincipalKey"] = "ServicePrincipalKey";
786
+ KnownDynamicsServicePrincipalCredentialType["ServicePrincipalCert"] = "ServicePrincipalCert";
787
+ })(KnownDynamicsServicePrincipalCredentialType || (KnownDynamicsServicePrincipalCredentialType = {}));
705
788
  /** Known values of {@link HdiNodeTypes} that the service accepts. */
706
789
  export var KnownHdiNodeTypes;
707
790
  (function (KnownHdiNodeTypes) {