@azure/synapse-artifacts 1.0.0-beta.12 → 1.0.0-beta.14

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 (83) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +14784 -13528
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/artifactsClient.js +4 -3
  5. package/dist-esm/src/artifactsClient.js.map +1 -1
  6. package/dist-esm/src/lroImpl.js +11 -15
  7. package/dist-esm/src/lroImpl.js.map +1 -1
  8. package/dist-esm/src/models/index.js +134 -76
  9. package/dist-esm/src/models/index.js.map +1 -1
  10. package/dist-esm/src/models/mappers.js +1831 -1045
  11. package/dist-esm/src/models/mappers.js.map +1 -1
  12. package/dist-esm/src/models/parameters.js +34 -6
  13. package/dist-esm/src/models/parameters.js.map +1 -1
  14. package/dist-esm/src/operations/bigDataPools.js +2 -2
  15. package/dist-esm/src/operations/bigDataPools.js.map +1 -1
  16. package/dist-esm/src/operations/dataFlowDebugSession.js +29 -19
  17. package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
  18. package/dist-esm/src/operations/dataFlowOperations.js +37 -23
  19. package/dist-esm/src/operations/dataFlowOperations.js.map +1 -1
  20. package/dist-esm/src/operations/datasetOperations.js +37 -23
  21. package/dist-esm/src/operations/datasetOperations.js.map +1 -1
  22. package/dist-esm/src/operations/index.js +1 -0
  23. package/dist-esm/src/operations/index.js.map +1 -1
  24. package/dist-esm/src/operations/integrationRuntimes.js +2 -2
  25. package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
  26. package/dist-esm/src/operations/kqlScriptOperations.js +30 -18
  27. package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -1
  28. package/dist-esm/src/operations/kqlScripts.js +7 -5
  29. package/dist-esm/src/operations/kqlScripts.js.map +1 -1
  30. package/dist-esm/src/operations/library.js +39 -25
  31. package/dist-esm/src/operations/library.js.map +1 -1
  32. package/dist-esm/src/operations/linkConnectionOperations.js +6 -4
  33. package/dist-esm/src/operations/linkConnectionOperations.js.map +1 -1
  34. package/dist-esm/src/operations/linkedServiceOperations.js +37 -23
  35. package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -1
  36. package/dist-esm/src/operations/metastore.js +4 -4
  37. package/dist-esm/src/operations/metastore.js.map +1 -1
  38. package/dist-esm/src/operations/notebookOperationResult.js +1 -1
  39. package/dist-esm/src/operations/notebookOperationResult.js.map +1 -1
  40. package/dist-esm/src/operations/notebookOperations.js +44 -28
  41. package/dist-esm/src/operations/notebookOperations.js.map +1 -1
  42. package/dist-esm/src/operations/pipelineOperations.js +38 -24
  43. package/dist-esm/src/operations/pipelineOperations.js.map +1 -1
  44. package/dist-esm/src/operations/pipelineRunOperations.js +7 -7
  45. package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -1
  46. package/dist-esm/src/operations/runNotebook.js +192 -0
  47. package/dist-esm/src/operations/runNotebook.js.map +1 -0
  48. package/dist-esm/src/operations/sparkConfigurationOperations.js +37 -23
  49. package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -1
  50. package/dist-esm/src/operations/sparkJobDefinitionOperations.js +57 -35
  51. package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -1
  52. package/dist-esm/src/operations/sqlPools.js +2 -2
  53. package/dist-esm/src/operations/sqlPools.js.map +1 -1
  54. package/dist-esm/src/operations/sqlScriptOperations.js +37 -23
  55. package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -1
  56. package/dist-esm/src/operations/triggerOperations.js +65 -39
  57. package/dist-esm/src/operations/triggerOperations.js.map +1 -1
  58. package/dist-esm/src/operations/triggerRunOperations.js +5 -5
  59. package/dist-esm/src/operations/triggerRunOperations.js.map +1 -1
  60. package/dist-esm/src/operations/workspaceGitRepoManagement.js +1 -1
  61. package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -1
  62. package/dist-esm/src/operations/workspaceOperations.js +1 -1
  63. package/dist-esm/src/operations/workspaceOperations.js.map +1 -1
  64. package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js.map +1 -1
  65. package/dist-esm/src/operationsInterfaces/dataFlowOperations.js.map +1 -1
  66. package/dist-esm/src/operationsInterfaces/datasetOperations.js.map +1 -1
  67. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  68. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  69. package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js.map +1 -1
  70. package/dist-esm/src/operationsInterfaces/library.js.map +1 -1
  71. package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js.map +1 -1
  72. package/dist-esm/src/operationsInterfaces/notebookOperations.js.map +1 -1
  73. package/dist-esm/src/operationsInterfaces/pipelineOperations.js.map +1 -1
  74. package/dist-esm/src/operationsInterfaces/runNotebook.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/runNotebook.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/sparkConfigurationOperations.js.map +1 -1
  77. package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js.map +1 -1
  78. package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js.map +1 -1
  79. package/dist-esm/src/operationsInterfaces/triggerOperations.js.map +1 -1
  80. package/dist-esm/src/tracing.js +1 -1
  81. package/dist-esm/src/tracing.js.map +1 -1
  82. package/package.json +20 -19
  83. package/types/synapse-artifacts.d.ts +591 -118
@@ -7,13 +7,13 @@
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
- import { LinkConnectionOperationsImpl, 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
+ import { LinkConnectionOperationsImpl, RunNotebookImpl, KqlScriptsImpl, KqlScriptOperationsImpl, MetastoreImpl, SparkConfigurationOperationsImpl, BigDataPoolsImpl, DataFlowOperationsImpl, DataFlowDebugSessionImpl, DatasetOperationsImpl, WorkspaceGitRepoManagementImpl, IntegrationRuntimesImpl, LibraryImpl, LinkedServiceOperationsImpl, NotebookOperationsImpl, NotebookOperationResultImpl, PipelineOperationsImpl, PipelineRunOperationsImpl, SparkJobDefinitionOperationsImpl, SqlPoolsImpl, SqlScriptOperationsImpl, TriggerOperationsImpl, TriggerRunOperationsImpl, WorkspaceOperationsImpl } from "./operations";
11
11
  export class ArtifactsClient extends coreClient.ServiceClient {
12
12
  /**
13
13
  * Initializes a new instance of the ArtifactsClient class.
14
14
  * @param credentials Subscription credentials which uniquely identify client subscription.
15
15
  * @param endpoint The workspace development endpoint, for example
16
- * https://myworkspace.dev.azuresynapse.net.
16
+ * `https://myworkspace.dev.azuresynapse.net`.
17
17
  * @param options The parameter options
18
18
  */
19
19
  constructor(credentials, endpoint, options) {
@@ -32,7 +32,7 @@ export class ArtifactsClient extends coreClient.ServiceClient {
32
32
  requestContentType: "application/json; charset=utf-8",
33
33
  credential: credentials
34
34
  };
35
- const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.12`;
35
+ const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.14`;
36
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
38
  : `${packageDetails}`;
@@ -67,6 +67,7 @@ export class ArtifactsClient extends coreClient.ServiceClient {
67
67
  // Parameter assignments
68
68
  this.endpoint = endpoint;
69
69
  this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);
70
+ this.runNotebook = new RunNotebookImpl(this);
70
71
  this.kqlScripts = new KqlScriptsImpl(this);
71
72
  this.kqlScriptOperations = new KqlScriptOperationsImpl(this);
72
73
  this.metastore = new MetastoreImpl(this);
@@ -1 +1 @@
1
- {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAC5B,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;AA4BtB,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,CAAC,CAAC;SACjD;QACD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,0CAA0C,CAAC;QAClE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB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QAC3D,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,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;CAyBF","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 coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n LinkConnectionOperationsImpl,\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 LinkConnectionOperations,\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.12`;\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 endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.endpoint = endpoint;\n this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);\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 linkConnectionOperations: LinkConnectionOperations;\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"]}
1
+ {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,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,EAC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AC,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;CA0BF","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 coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n LinkConnectionOperationsImpl,\n RunNotebookImpl,\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 LinkConnectionOperations,\n RunNotebook,\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.14`;\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 endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.endpoint = endpoint;\n this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);\n this.runNotebook = new RunNotebookImpl(this);\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 linkConnectionOperations: LinkConnectionOperations;\n runNotebook: RunNotebook;\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"]}
@@ -6,20 +6,16 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __rest } from "tslib";
9
- export class LroImpl {
10
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
- this.sendOperationFn = sendOperationFn;
12
- this.args = args;
13
- this.spec = spec;
14
- this.requestPath = requestPath;
15
- this.requestMethod = requestMethod;
16
- }
17
- async sendInitialRequest() {
18
- return this.sendOperationFn(this.args, this.spec);
19
- }
20
- async sendPollRequest(path) {
21
- const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
23
- }
9
+ export function createLroSpec(inputs) {
10
+ const { args, spec, sendOperationFn } = inputs;
11
+ return {
12
+ requestMethod: spec.httpMethod,
13
+ requestPath: spec.path,
14
+ sendInitialRequest: () => sendOperationFn(args, spec),
15
+ sendPollRequest: (path, options) => {
16
+ const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
18
+ }
19
+ };
24
20
  }
25
21
  //# sourceMappingURL=lroImpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
@@ -11,6 +11,40 @@ export var KnownType;
11
11
  /** LinkedServiceReference */
12
12
  KnownType["LinkedServiceReference"] = "LinkedServiceReference";
13
13
  })(KnownType || (KnownType = {}));
14
+ /** Known values of {@link ActionOnExistingTargetTable} that the service accepts. */
15
+ export var KnownActionOnExistingTargetTable;
16
+ (function (KnownActionOnExistingTargetTable) {
17
+ /** Same existing tables on target database will be Failed. */
18
+ KnownActionOnExistingTargetTable["FailOnNonEmptyTable"] = "FailOnNonEmptyTable";
19
+ /** Same existing tables on target database will be dropped and recreated. */
20
+ KnownActionOnExistingTargetTable["DropAndRecreateTable"] = "DropAndRecreateTable";
21
+ /** Same existing tables on target database will be Merged together. */
22
+ KnownActionOnExistingTargetTable["MergeWithExistingData"] = "MergeWithExistingData";
23
+ })(KnownActionOnExistingTargetTable || (KnownActionOnExistingTargetTable = {}));
24
+ /** Known values of {@link BigDataPoolReferenceType} that the service accepts. */
25
+ export var KnownBigDataPoolReferenceType;
26
+ (function (KnownBigDataPoolReferenceType) {
27
+ /** BigDataPoolReference */
28
+ KnownBigDataPoolReferenceType["BigDataPoolReference"] = "BigDataPoolReference";
29
+ })(KnownBigDataPoolReferenceType || (KnownBigDataPoolReferenceType = {}));
30
+ /** Known values of {@link SparkConfigurationReferenceType} that the service accepts. */
31
+ export var KnownSparkConfigurationReferenceType;
32
+ (function (KnownSparkConfigurationReferenceType) {
33
+ /** SparkConfigurationReference */
34
+ KnownSparkConfigurationReferenceType["SparkConfigurationReference"] = "SparkConfigurationReference";
35
+ })(KnownSparkConfigurationReferenceType || (KnownSparkConfigurationReferenceType = {}));
36
+ /** Known values of {@link CellOutputType} that the service accepts. */
37
+ export var KnownCellOutputType;
38
+ (function (KnownCellOutputType) {
39
+ /** ExecuteResult */
40
+ KnownCellOutputType["ExecuteResult"] = "execute_result";
41
+ /** DisplayData */
42
+ KnownCellOutputType["DisplayData"] = "display_data";
43
+ /** Stream */
44
+ KnownCellOutputType["Stream"] = "stream";
45
+ /** Error */
46
+ KnownCellOutputType["Error"] = "error";
47
+ })(KnownCellOutputType || (KnownCellOutputType = {}));
14
48
  /** Known values of {@link RequestStatus} that the service accepts. */
15
49
  export var KnownRequestStatus;
16
50
  (function (KnownRequestStatus) {
@@ -99,30 +133,24 @@ export var KnownDataFlowDebugCommandType;
99
133
  /** ExecuteExpressionQuery */
100
134
  KnownDataFlowDebugCommandType["ExecuteExpressionQuery"] = "executeExpressionQuery";
101
135
  })(KnownDataFlowDebugCommandType || (KnownDataFlowDebugCommandType = {}));
102
- /** Known values of {@link BigDataPoolReferenceType} that the service accepts. */
103
- export var KnownBigDataPoolReferenceType;
104
- (function (KnownBigDataPoolReferenceType) {
105
- /** BigDataPoolReference */
106
- KnownBigDataPoolReferenceType["BigDataPoolReference"] = "BigDataPoolReference";
107
- })(KnownBigDataPoolReferenceType || (KnownBigDataPoolReferenceType = {}));
108
- /** Known values of {@link SparkConfigurationReferenceType} that the service accepts. */
109
- export var KnownSparkConfigurationReferenceType;
110
- (function (KnownSparkConfigurationReferenceType) {
111
- /** SparkConfigurationReference */
112
- KnownSparkConfigurationReferenceType["SparkConfigurationReference"] = "SparkConfigurationReference";
113
- })(KnownSparkConfigurationReferenceType || (KnownSparkConfigurationReferenceType = {}));
114
- /** Known values of {@link CellOutputType} that the service accepts. */
115
- export var KnownCellOutputType;
116
- (function (KnownCellOutputType) {
117
- /** ExecuteResult */
118
- KnownCellOutputType["ExecuteResult"] = "execute_result";
119
- /** DisplayData */
120
- KnownCellOutputType["DisplayData"] = "display_data";
121
- /** Stream */
122
- KnownCellOutputType["Stream"] = "stream";
123
- /** Error */
124
- KnownCellOutputType["Error"] = "error";
125
- })(KnownCellOutputType || (KnownCellOutputType = {}));
136
+ /** Known values of {@link ActivityState} that the service accepts. */
137
+ export var KnownActivityState;
138
+ (function (KnownActivityState) {
139
+ /** Active */
140
+ KnownActivityState["Active"] = "Active";
141
+ /** Inactive */
142
+ KnownActivityState["Inactive"] = "Inactive";
143
+ })(KnownActivityState || (KnownActivityState = {}));
144
+ /** Known values of {@link ActivityOnInactiveMarkAs} that the service accepts. */
145
+ export var KnownActivityOnInactiveMarkAs;
146
+ (function (KnownActivityOnInactiveMarkAs) {
147
+ /** Succeeded */
148
+ KnownActivityOnInactiveMarkAs["Succeeded"] = "Succeeded";
149
+ /** Failed */
150
+ KnownActivityOnInactiveMarkAs["Failed"] = "Failed";
151
+ /** Skipped */
152
+ KnownActivityOnInactiveMarkAs["Skipped"] = "Skipped";
153
+ })(KnownActivityOnInactiveMarkAs || (KnownActivityOnInactiveMarkAs = {}));
126
154
  /** Known values of {@link DependencyCondition} that the service accepts. */
127
155
  export var KnownDependencyCondition;
128
156
  (function (KnownDependencyCondition) {
@@ -405,6 +433,36 @@ export var KnownSqlPoolReferenceType;
405
433
  /** SqlPoolReference */
406
434
  KnownSqlPoolReferenceType["SqlPoolReference"] = "SqlPoolReference";
407
435
  })(KnownSqlPoolReferenceType || (KnownSqlPoolReferenceType = {}));
436
+ /** Known values of {@link CredentialReferenceType} that the service accepts. */
437
+ export var KnownCredentialReferenceType;
438
+ (function (KnownCredentialReferenceType) {
439
+ /** CredentialReference */
440
+ KnownCredentialReferenceType["CredentialReference"] = "CredentialReference";
441
+ })(KnownCredentialReferenceType || (KnownCredentialReferenceType = {}));
442
+ /** Known values of {@link AzureStorageAuthenticationType} that the service accepts. */
443
+ export var KnownAzureStorageAuthenticationType;
444
+ (function (KnownAzureStorageAuthenticationType) {
445
+ /** Anonymous */
446
+ KnownAzureStorageAuthenticationType["Anonymous"] = "Anonymous";
447
+ /** AccountKey */
448
+ KnownAzureStorageAuthenticationType["AccountKey"] = "AccountKey";
449
+ /** SasUri */
450
+ KnownAzureStorageAuthenticationType["SasUri"] = "SasUri";
451
+ /** ServicePrincipal */
452
+ KnownAzureStorageAuthenticationType["ServicePrincipal"] = "ServicePrincipal";
453
+ /** Msi */
454
+ KnownAzureStorageAuthenticationType["Msi"] = "Msi";
455
+ })(KnownAzureStorageAuthenticationType || (KnownAzureStorageAuthenticationType = {}));
456
+ /** Known values of {@link SqlAlwaysEncryptedAkvAuthType} that the service accepts. */
457
+ export var KnownSqlAlwaysEncryptedAkvAuthType;
458
+ (function (KnownSqlAlwaysEncryptedAkvAuthType) {
459
+ /** ServicePrincipal */
460
+ KnownSqlAlwaysEncryptedAkvAuthType["ServicePrincipal"] = "ServicePrincipal";
461
+ /** ManagedIdentity */
462
+ KnownSqlAlwaysEncryptedAkvAuthType["ManagedIdentity"] = "ManagedIdentity";
463
+ /** UserAssignedManagedIdentity */
464
+ KnownSqlAlwaysEncryptedAkvAuthType["UserAssignedManagedIdentity"] = "UserAssignedManagedIdentity";
465
+ })(KnownSqlAlwaysEncryptedAkvAuthType || (KnownSqlAlwaysEncryptedAkvAuthType = {}));
408
466
  /** Known values of {@link SybaseAuthenticationType} that the service accepts. */
409
467
  export var KnownSybaseAuthenticationType;
410
468
  (function (KnownSybaseAuthenticationType) {
@@ -659,58 +717,6 @@ export var KnownGoogleAdWordsAuthenticationType;
659
717
  /** UserAuthentication */
660
718
  KnownGoogleAdWordsAuthenticationType["UserAuthentication"] = "UserAuthentication";
661
719
  })(KnownGoogleAdWordsAuthenticationType || (KnownGoogleAdWordsAuthenticationType = {}));
662
- /** Known values of {@link SalesforceSourceReadBehavior} that the service accepts. */
663
- export var KnownSalesforceSourceReadBehavior;
664
- (function (KnownSalesforceSourceReadBehavior) {
665
- /** Query */
666
- KnownSalesforceSourceReadBehavior["Query"] = "Query";
667
- /** QueryAll */
668
- KnownSalesforceSourceReadBehavior["QueryAll"] = "QueryAll";
669
- })(KnownSalesforceSourceReadBehavior || (KnownSalesforceSourceReadBehavior = {}));
670
- /** Known values of {@link SapHanaPartitionOption} that the service accepts. */
671
- export var KnownSapHanaPartitionOption;
672
- (function (KnownSapHanaPartitionOption) {
673
- /** None */
674
- KnownSapHanaPartitionOption["None"] = "None";
675
- /** PhysicalPartitionsOfTable */
676
- KnownSapHanaPartitionOption["PhysicalPartitionsOfTable"] = "PhysicalPartitionsOfTable";
677
- /** SapHanaDynamicRange */
678
- KnownSapHanaPartitionOption["SapHanaDynamicRange"] = "SapHanaDynamicRange";
679
- })(KnownSapHanaPartitionOption || (KnownSapHanaPartitionOption = {}));
680
- /** Known values of {@link SapTablePartitionOption} that the service accepts. */
681
- export var KnownSapTablePartitionOption;
682
- (function (KnownSapTablePartitionOption) {
683
- /** None */
684
- KnownSapTablePartitionOption["None"] = "None";
685
- /** PartitionOnInt */
686
- KnownSapTablePartitionOption["PartitionOnInt"] = "PartitionOnInt";
687
- /** PartitionOnCalendarYear */
688
- KnownSapTablePartitionOption["PartitionOnCalendarYear"] = "PartitionOnCalendarYear";
689
- /** PartitionOnCalendarMonth */
690
- KnownSapTablePartitionOption["PartitionOnCalendarMonth"] = "PartitionOnCalendarMonth";
691
- /** PartitionOnCalendarDate */
692
- KnownSapTablePartitionOption["PartitionOnCalendarDate"] = "PartitionOnCalendarDate";
693
- /** PartitionOnTime */
694
- KnownSapTablePartitionOption["PartitionOnTime"] = "PartitionOnTime";
695
- })(KnownSapTablePartitionOption || (KnownSapTablePartitionOption = {}));
696
- /** Known values of {@link StoredProcedureParameterType} that the service accepts. */
697
- export var KnownStoredProcedureParameterType;
698
- (function (KnownStoredProcedureParameterType) {
699
- /** String */
700
- KnownStoredProcedureParameterType["String"] = "String";
701
- /** Int */
702
- KnownStoredProcedureParameterType["Int"] = "Int";
703
- /** Int64 */
704
- KnownStoredProcedureParameterType["Int64"] = "Int64";
705
- /** Decimal */
706
- KnownStoredProcedureParameterType["Decimal"] = "Decimal";
707
- /** Guid */
708
- KnownStoredProcedureParameterType["Guid"] = "Guid";
709
- /** Boolean */
710
- KnownStoredProcedureParameterType["Boolean"] = "Boolean";
711
- /** Date */
712
- KnownStoredProcedureParameterType["Date"] = "Date";
713
- })(KnownStoredProcedureParameterType || (KnownStoredProcedureParameterType = {}));
714
720
  /** Known values of {@link OraclePartitionOption} that the service accepts. */
715
721
  export var KnownOraclePartitionOption;
716
722
  (function (KnownOraclePartitionOption) {
@@ -765,6 +771,24 @@ export var KnownNetezzaPartitionOption;
765
771
  /** DynamicRange */
766
772
  KnownNetezzaPartitionOption["DynamicRange"] = "DynamicRange";
767
773
  })(KnownNetezzaPartitionOption || (KnownNetezzaPartitionOption = {}));
774
+ /** Known values of {@link StoredProcedureParameterType} that the service accepts. */
775
+ export var KnownStoredProcedureParameterType;
776
+ (function (KnownStoredProcedureParameterType) {
777
+ /** String */
778
+ KnownStoredProcedureParameterType["String"] = "String";
779
+ /** Int */
780
+ KnownStoredProcedureParameterType["Int"] = "Int";
781
+ /** Int64 */
782
+ KnownStoredProcedureParameterType["Int64"] = "Int64";
783
+ /** Decimal */
784
+ KnownStoredProcedureParameterType["Decimal"] = "Decimal";
785
+ /** Guid */
786
+ KnownStoredProcedureParameterType["Guid"] = "Guid";
787
+ /** Boolean */
788
+ KnownStoredProcedureParameterType["Boolean"] = "Boolean";
789
+ /** Date */
790
+ KnownStoredProcedureParameterType["Date"] = "Date";
791
+ })(KnownStoredProcedureParameterType || (KnownStoredProcedureParameterType = {}));
768
792
  /** Known values of {@link NotebookParameterType} that the service accepts. */
769
793
  export var KnownNotebookParameterType;
770
794
  (function (KnownNotebookParameterType) {
@@ -1177,6 +1201,14 @@ export var KnownJsonWriteFilePattern;
1177
1201
  /** ArrayOfObjects */
1178
1202
  KnownJsonWriteFilePattern["ArrayOfObjects"] = "arrayOfObjects";
1179
1203
  })(KnownJsonWriteFilePattern || (KnownJsonWriteFilePattern = {}));
1204
+ /** Known values of {@link SalesforceSourceReadBehavior} that the service accepts. */
1205
+ export var KnownSalesforceSourceReadBehavior;
1206
+ (function (KnownSalesforceSourceReadBehavior) {
1207
+ /** Query */
1208
+ KnownSalesforceSourceReadBehavior["Query"] = "Query";
1209
+ /** QueryAll */
1210
+ KnownSalesforceSourceReadBehavior["QueryAll"] = "QueryAll";
1211
+ })(KnownSalesforceSourceReadBehavior || (KnownSalesforceSourceReadBehavior = {}));
1180
1212
  /** Known values of {@link AmazonRdsForOraclePartitionOption} that the service accepts. */
1181
1213
  export var KnownAmazonRdsForOraclePartitionOption;
1182
1214
  (function (KnownAmazonRdsForOraclePartitionOption) {
@@ -1207,4 +1239,30 @@ export var KnownSqlPartitionOption;
1207
1239
  /** DynamicRange */
1208
1240
  KnownSqlPartitionOption["DynamicRange"] = "DynamicRange";
1209
1241
  })(KnownSqlPartitionOption || (KnownSqlPartitionOption = {}));
1242
+ /** Known values of {@link SapHanaPartitionOption} that the service accepts. */
1243
+ export var KnownSapHanaPartitionOption;
1244
+ (function (KnownSapHanaPartitionOption) {
1245
+ /** None */
1246
+ KnownSapHanaPartitionOption["None"] = "None";
1247
+ /** PhysicalPartitionsOfTable */
1248
+ KnownSapHanaPartitionOption["PhysicalPartitionsOfTable"] = "PhysicalPartitionsOfTable";
1249
+ /** SapHanaDynamicRange */
1250
+ KnownSapHanaPartitionOption["SapHanaDynamicRange"] = "SapHanaDynamicRange";
1251
+ })(KnownSapHanaPartitionOption || (KnownSapHanaPartitionOption = {}));
1252
+ /** Known values of {@link SapTablePartitionOption} that the service accepts. */
1253
+ export var KnownSapTablePartitionOption;
1254
+ (function (KnownSapTablePartitionOption) {
1255
+ /** None */
1256
+ KnownSapTablePartitionOption["None"] = "None";
1257
+ /** PartitionOnInt */
1258
+ KnownSapTablePartitionOption["PartitionOnInt"] = "PartitionOnInt";
1259
+ /** PartitionOnCalendarYear */
1260
+ KnownSapTablePartitionOption["PartitionOnCalendarYear"] = "PartitionOnCalendarYear";
1261
+ /** PartitionOnCalendarMonth */
1262
+ KnownSapTablePartitionOption["PartitionOnCalendarMonth"] = "PartitionOnCalendarMonth";
1263
+ /** PartitionOnCalendarDate */
1264
+ KnownSapTablePartitionOption["PartitionOnCalendarDate"] = "PartitionOnCalendarDate";
1265
+ /** PartitionOnTime */
1266
+ KnownSapTablePartitionOption["PartitionOnTime"] = "PartitionOnTime";
1267
+ })(KnownSapTablePartitionOption || (KnownSapTablePartitionOption = {}));
1210
1268
  //# sourceMappingURL=index.js.map