@azure/synapse-artifacts 1.0.0-beta.8 → 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.
- package/CHANGELOG.md +10 -0
- package/dist/index.js +887 -280
- package/dist/index.js.map +1 -1
- package/dist-esm/src/artifactsClient.js +29 -3
- package/dist-esm/src/artifactsClient.js.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.js +47 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.js +342 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/bigDataPools.js.map +1 -1
- package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
- package/dist-esm/src/operations/dataFlowOperations.js.map +1 -1
- package/dist-esm/src/operations/datasetOperations.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
- package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -1
- package/dist-esm/src/operations/kqlScripts.js.map +1 -1
- package/dist-esm/src/operations/library.js.map +1 -1
- package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -1
- package/dist-esm/src/operations/metastore.js.map +1 -1
- package/dist-esm/src/operations/notebookOperationResult.js.map +1 -1
- package/dist-esm/src/operations/notebookOperations.js.map +1 -1
- package/dist-esm/src/operations/pipelineOperations.js.map +1 -1
- package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -1
- package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist-esm/src/operations/sqlPools.js.map +1 -1
- package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -1
- package/dist-esm/src/operations/triggerOperations.js.map +1 -1
- package/dist-esm/src/operations/triggerRunOperations.js.map +1 -1
- package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist-esm/src/operations/workspaceOperations.js.map +1 -1
- package/package.json +13 -12
- package/types/synapse-artifacts.d.ts +253 -20
- package/dist-esm/src/artifactsClientContext.js +0 -47
- package/dist-esm/src/artifactsClientContext.js.map +0 -1
|
@@ -8,7 +8,7 @@ import { PollOperationState } from '@azure/core-lro';
|
|
|
8
8
|
/** A pipeline activity. */
|
|
9
9
|
export declare interface Activity {
|
|
10
10
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
11
|
-
type: "Container" | "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "ExecutePipeline" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "IfCondition" | "Switch" | "ForEach" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "Wait" | "Until" | "Validation" | "Filter" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "SetVariable" | "AppendVariable" | "AzureFunctionActivity" | "WebHook" | "ExecuteDataFlow" | "SynapseNotebook" | "SparkJob" | "SqlPoolStoredProcedure";
|
|
11
|
+
type: "Container" | "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "ExecutePipeline" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "IfCondition" | "Switch" | "ForEach" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "Wait" | "Until" | "Validation" | "Filter" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "SetVariable" | "AppendVariable" | "AzureFunctionActivity" | "WebHook" | "ExecuteDataFlow" | "Script" | "SynapseNotebook" | "SparkJob" | "SqlPoolStoredProcedure";
|
|
12
12
|
/** Describes unknown properties. The value of an unknown property can be of "any" type. */
|
|
13
13
|
[property: string]: any;
|
|
14
14
|
/** Activity name. */
|
|
@@ -421,7 +421,8 @@ export declare interface ArtifactRenameRequest {
|
|
|
421
421
|
newName?: string;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
export declare class ArtifactsClient extends
|
|
424
|
+
export declare class ArtifactsClient extends coreClient.ServiceClient {
|
|
425
|
+
endpoint: string;
|
|
425
426
|
/**
|
|
426
427
|
* Initializes a new instance of the ArtifactsClient class.
|
|
427
428
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -454,18 +455,6 @@ export declare class ArtifactsClient extends ArtifactsClientContext {
|
|
|
454
455
|
workspaceOperations: WorkspaceOperations;
|
|
455
456
|
}
|
|
456
457
|
|
|
457
|
-
export declare class ArtifactsClientContext extends coreClient.ServiceClient {
|
|
458
|
-
endpoint: string;
|
|
459
|
-
/**
|
|
460
|
-
* Initializes a new instance of the ArtifactsClientContext class.
|
|
461
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
462
|
-
* @param endpoint The workspace development endpoint, for example
|
|
463
|
-
* https://myworkspace.dev.azuresynapse.net.
|
|
464
|
-
* @param options The parameter options
|
|
465
|
-
*/
|
|
466
|
-
constructor(credentials: coreAuth.TokenCredential, endpoint: string, options?: ArtifactsClientOptionalParams);
|
|
467
|
-
}
|
|
468
|
-
|
|
469
458
|
/** Optional parameters. */
|
|
470
459
|
export declare interface ArtifactsClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
471
460
|
/** Overrides client endpoint. */
|
|
@@ -1630,6 +1619,14 @@ export declare type AzureTableStorageLinkedService = LinkedService & {
|
|
|
1630
1619
|
encryptedCredential?: string;
|
|
1631
1620
|
};
|
|
1632
1621
|
|
|
1622
|
+
/** Big data pool reference type. */
|
|
1623
|
+
export declare interface BigDataPoolParametrizationReference {
|
|
1624
|
+
/** Big data pool reference type. */
|
|
1625
|
+
type: BigDataPoolReferenceType;
|
|
1626
|
+
/** Reference big data pool name. Type: string (or Expression with resultType string). */
|
|
1627
|
+
referenceName: any;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1633
1630
|
/** Big data pool reference. */
|
|
1634
1631
|
export declare interface BigDataPoolReference {
|
|
1635
1632
|
/** Big data pool reference type. */
|
|
@@ -3889,14 +3886,14 @@ export declare type ExecuteSsisPackageActivity = ExecutionActivity & {
|
|
|
3889
3886
|
/** Base class for all execution activities. */
|
|
3890
3887
|
export declare type ExecutionActivity = Activity & {
|
|
3891
3888
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3892
|
-
type: "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "AzureFunctionActivity" | "ExecuteDataFlow" | "SynapseNotebook" | "SparkJob";
|
|
3889
|
+
type: "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "AzureFunctionActivity" | "ExecuteDataFlow" | "Script" | "SynapseNotebook" | "SparkJob";
|
|
3893
3890
|
/** Linked service reference. */
|
|
3894
3891
|
linkedServiceName?: LinkedServiceReference;
|
|
3895
3892
|
/** Activity policy. */
|
|
3896
3893
|
policy?: ActivityPolicy;
|
|
3897
3894
|
};
|
|
3898
3895
|
|
|
3899
|
-
export declare type ExecutionActivityUnion = ExecutionActivity | CopyActivity | HDInsightHiveActivity | HDInsightPigActivity | HDInsightMapReduceActivity | HDInsightStreamingActivity | HDInsightSparkActivity | ExecuteSsisPackageActivity | CustomActivity | SqlServerStoredProcedureActivity | DeleteActivity | AzureDataExplorerCommandActivity | LookupActivity | WebActivity | GetMetadataActivity | AzureMLBatchExecutionActivity | AzureMLUpdateResourceActivity | AzureMLExecutePipelineActivity | DataLakeAnalyticsUsqlActivity | DatabricksNotebookActivity | DatabricksSparkJarActivity | DatabricksSparkPythonActivity | AzureFunctionActivity | ExecuteDataFlowActivity | SynapseNotebookActivity | SynapseSparkJobDefinitionActivity;
|
|
3896
|
+
export declare type ExecutionActivityUnion = ExecutionActivity | CopyActivity | HDInsightHiveActivity | HDInsightPigActivity | HDInsightMapReduceActivity | HDInsightStreamingActivity | HDInsightSparkActivity | ExecuteSsisPackageActivity | CustomActivity | SqlServerStoredProcedureActivity | DeleteActivity | AzureDataExplorerCommandActivity | LookupActivity | WebActivity | GetMetadataActivity | AzureMLBatchExecutionActivity | AzureMLUpdateResourceActivity | AzureMLExecutePipelineActivity | DataLakeAnalyticsUsqlActivity | DatabricksNotebookActivity | DatabricksSparkJarActivity | DatabricksSparkPythonActivity | AzureFunctionActivity | ExecuteDataFlowActivity | ScriptActivity | SynapseNotebookActivity | SynapseSparkJobDefinitionActivity;
|
|
3900
3897
|
|
|
3901
3898
|
/** Export command settings. */
|
|
3902
3899
|
export declare interface ExportSettings {
|
|
@@ -6047,6 +6044,41 @@ export declare enum KnownSchedulerCurrentState {
|
|
|
6047
6044
|
Ended = "Ended"
|
|
6048
6045
|
}
|
|
6049
6046
|
|
|
6047
|
+
/** Known values of {@link ScriptActivityLogDestination} that the service accepts. */
|
|
6048
|
+
export declare enum KnownScriptActivityLogDestination {
|
|
6049
|
+
ActivityOutput = "ActivityOutput",
|
|
6050
|
+
ExternalStore = "ExternalStore"
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6053
|
+
/** Known values of {@link ScriptActivityParameterDirection} that the service accepts. */
|
|
6054
|
+
export declare enum KnownScriptActivityParameterDirection {
|
|
6055
|
+
Input = "Input",
|
|
6056
|
+
Output = "Output",
|
|
6057
|
+
InputOutput = "InputOutput"
|
|
6058
|
+
}
|
|
6059
|
+
|
|
6060
|
+
/** Known values of {@link ScriptActivityParameterType} that the service accepts. */
|
|
6061
|
+
export declare enum KnownScriptActivityParameterType {
|
|
6062
|
+
Boolean = "Boolean",
|
|
6063
|
+
DateTime = "DateTime",
|
|
6064
|
+
DateTimeOffset = "DateTimeOffset",
|
|
6065
|
+
Decimal = "Decimal",
|
|
6066
|
+
Double = "Double",
|
|
6067
|
+
Guid = "Guid",
|
|
6068
|
+
Int16 = "Int16",
|
|
6069
|
+
Int32 = "Int32",
|
|
6070
|
+
Int64 = "Int64",
|
|
6071
|
+
Single = "Single",
|
|
6072
|
+
String = "String",
|
|
6073
|
+
Timespan = "Timespan"
|
|
6074
|
+
}
|
|
6075
|
+
|
|
6076
|
+
/** Known values of {@link ScriptType} that the service accepts. */
|
|
6077
|
+
export declare enum KnownScriptType {
|
|
6078
|
+
Query = "Query",
|
|
6079
|
+
NonQuery = "NonQuery"
|
|
6080
|
+
}
|
|
6081
|
+
|
|
6050
6082
|
/** Known values of {@link ServiceNowAuthenticationType} that the service accepts. */
|
|
6051
6083
|
export declare enum KnownServiceNowAuthenticationType {
|
|
6052
6084
|
Basic = "Basic",
|
|
@@ -6161,6 +6193,12 @@ export declare enum KnownSybaseAuthenticationType {
|
|
|
6161
6193
|
Windows = "Windows"
|
|
6162
6194
|
}
|
|
6163
6195
|
|
|
6196
|
+
/** Known values of {@link TeamDeskAuthenticationType} that the service accepts. */
|
|
6197
|
+
export declare enum KnownTeamDeskAuthenticationType {
|
|
6198
|
+
Basic = "Basic",
|
|
6199
|
+
Token = "Token"
|
|
6200
|
+
}
|
|
6201
|
+
|
|
6164
6202
|
/** Known values of {@link TeradataAuthenticationType} that the service accepts. */
|
|
6165
6203
|
export declare enum KnownTeradataAuthenticationType {
|
|
6166
6204
|
Basic = "Basic",
|
|
@@ -6233,6 +6271,12 @@ export declare enum KnownWebHookActivityMethod {
|
|
|
6233
6271
|
Post = "POST"
|
|
6234
6272
|
}
|
|
6235
6273
|
|
|
6274
|
+
/** Known values of {@link ZendeskAuthenticationType} that the service accepts. */
|
|
6275
|
+
export declare enum KnownZendeskAuthenticationType {
|
|
6276
|
+
Basic = "Basic",
|
|
6277
|
+
Token = "Token"
|
|
6278
|
+
}
|
|
6279
|
+
|
|
6236
6280
|
export declare interface KqlScript {
|
|
6237
6281
|
content?: KqlScriptContent;
|
|
6238
6282
|
}
|
|
@@ -6671,7 +6715,7 @@ export declare type LinkedIntegrationRuntimeTypeUnion = LinkedIntegrationRuntime
|
|
|
6671
6715
|
/** The Azure Synapse nested object which contains the information and credential which can be used to connect with related store or compute resource. */
|
|
6672
6716
|
export declare interface LinkedService {
|
|
6673
6717
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
6674
|
-
type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "RestService" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SharePointOnlineList";
|
|
6718
|
+
type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SharePointOnlineList";
|
|
6675
6719
|
/** Describes unknown properties. The value of an unknown property can be of "any" type. */
|
|
6676
6720
|
[property: string]: any;
|
|
6677
6721
|
/** The integration runtime reference. */
|
|
@@ -6825,7 +6869,7 @@ export declare type LinkedServiceResource = SubResource & {
|
|
|
6825
6869
|
properties: LinkedServiceUnion;
|
|
6826
6870
|
};
|
|
6827
6871
|
|
|
6828
|
-
export declare type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | RestServiceLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SharePointOnlineListLinkedService;
|
|
6872
|
+
export declare type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SharePointOnlineListLinkedService;
|
|
6829
6873
|
|
|
6830
6874
|
/**
|
|
6831
6875
|
* Defines values for LivyStates. \
|
|
@@ -8791,6 +8835,18 @@ export declare interface QueryDataFlowDebugSessionsResponse {
|
|
|
8791
8835
|
nextLink?: string;
|
|
8792
8836
|
}
|
|
8793
8837
|
|
|
8838
|
+
/** Linked service for Quickbase. */
|
|
8839
|
+
export declare type QuickbaseLinkedService = LinkedService & {
|
|
8840
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
8841
|
+
type: "Quickbase";
|
|
8842
|
+
/** The url to connect Quickbase source. Type: string (or Expression with resultType string). */
|
|
8843
|
+
url: any;
|
|
8844
|
+
/** The user token for the Quickbase source. */
|
|
8845
|
+
userToken: SecretBaseUnion;
|
|
8846
|
+
/** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */
|
|
8847
|
+
encryptedCredential?: any;
|
|
8848
|
+
};
|
|
8849
|
+
|
|
8794
8850
|
/** QuickBooks server linked service. */
|
|
8795
8851
|
export declare type QuickBooksLinkedService = LinkedService & {
|
|
8796
8852
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
@@ -9760,6 +9816,99 @@ export declare interface ScriptAction {
|
|
|
9760
9816
|
parameters?: string;
|
|
9761
9817
|
}
|
|
9762
9818
|
|
|
9819
|
+
/** Script activity type. */
|
|
9820
|
+
export declare type ScriptActivity = ExecutionActivity & {
|
|
9821
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
9822
|
+
type: "Script";
|
|
9823
|
+
/** Array of script blocks. Type: array. */
|
|
9824
|
+
scripts?: ScriptActivityScriptBlock[];
|
|
9825
|
+
/** Log settings of script activity. */
|
|
9826
|
+
logSettings?: ScriptActivityTypePropertiesLogSettings;
|
|
9827
|
+
};
|
|
9828
|
+
|
|
9829
|
+
/**
|
|
9830
|
+
* Defines values for ScriptActivityLogDestination. \
|
|
9831
|
+
* {@link KnownScriptActivityLogDestination} can be used interchangeably with ScriptActivityLogDestination,
|
|
9832
|
+
* this enum contains the known values that the service supports.
|
|
9833
|
+
* ### Known values supported by the service
|
|
9834
|
+
* **ActivityOutput** \
|
|
9835
|
+
* **ExternalStore**
|
|
9836
|
+
*/
|
|
9837
|
+
export declare type ScriptActivityLogDestination = string;
|
|
9838
|
+
|
|
9839
|
+
/** Parameters of a script block. */
|
|
9840
|
+
export declare interface ScriptActivityParameter {
|
|
9841
|
+
/** The name of the parameter. Type: string (or Expression with resultType string). */
|
|
9842
|
+
name?: any;
|
|
9843
|
+
/** The type of the parameter. */
|
|
9844
|
+
type?: ScriptActivityParameterType;
|
|
9845
|
+
/** The value of the parameter. */
|
|
9846
|
+
value?: any;
|
|
9847
|
+
/** The direction of the parameter. */
|
|
9848
|
+
direction?: ScriptActivityParameterDirection;
|
|
9849
|
+
/** The size of the output direction parameter. */
|
|
9850
|
+
size?: number;
|
|
9851
|
+
}
|
|
9852
|
+
|
|
9853
|
+
/**
|
|
9854
|
+
* Defines values for ScriptActivityParameterDirection. \
|
|
9855
|
+
* {@link KnownScriptActivityParameterDirection} can be used interchangeably with ScriptActivityParameterDirection,
|
|
9856
|
+
* this enum contains the known values that the service supports.
|
|
9857
|
+
* ### Known values supported by the service
|
|
9858
|
+
* **Input** \
|
|
9859
|
+
* **Output** \
|
|
9860
|
+
* **InputOutput**
|
|
9861
|
+
*/
|
|
9862
|
+
export declare type ScriptActivityParameterDirection = string;
|
|
9863
|
+
|
|
9864
|
+
/**
|
|
9865
|
+
* Defines values for ScriptActivityParameterType. \
|
|
9866
|
+
* {@link KnownScriptActivityParameterType} can be used interchangeably with ScriptActivityParameterType,
|
|
9867
|
+
* this enum contains the known values that the service supports.
|
|
9868
|
+
* ### Known values supported by the service
|
|
9869
|
+
* **Boolean** \
|
|
9870
|
+
* **DateTime** \
|
|
9871
|
+
* **DateTimeOffset** \
|
|
9872
|
+
* **Decimal** \
|
|
9873
|
+
* **Double** \
|
|
9874
|
+
* **Guid** \
|
|
9875
|
+
* **Int16** \
|
|
9876
|
+
* **Int32** \
|
|
9877
|
+
* **Int64** \
|
|
9878
|
+
* **Single** \
|
|
9879
|
+
* **String** \
|
|
9880
|
+
* **Timespan**
|
|
9881
|
+
*/
|
|
9882
|
+
export declare type ScriptActivityParameterType = string;
|
|
9883
|
+
|
|
9884
|
+
/** Script block of scripts. */
|
|
9885
|
+
export declare interface ScriptActivityScriptBlock {
|
|
9886
|
+
/** The query text. Type: string (or Expression with resultType string). */
|
|
9887
|
+
text: any;
|
|
9888
|
+
/** The type of the query. Type: string. */
|
|
9889
|
+
type: ScriptType;
|
|
9890
|
+
/** Array of script parameters. Type: array. */
|
|
9891
|
+
parameters?: ScriptActivityParameter[];
|
|
9892
|
+
}
|
|
9893
|
+
|
|
9894
|
+
/** Log settings of script activity. */
|
|
9895
|
+
export declare interface ScriptActivityTypePropertiesLogSettings {
|
|
9896
|
+
/** The destination of logs. Type: string. */
|
|
9897
|
+
logDestination: ScriptActivityLogDestination;
|
|
9898
|
+
/** Log location settings customer needs to provide when enabling log. */
|
|
9899
|
+
logLocationSettings?: LogLocationSettings;
|
|
9900
|
+
}
|
|
9901
|
+
|
|
9902
|
+
/**
|
|
9903
|
+
* Defines values for ScriptType. \
|
|
9904
|
+
* {@link KnownScriptType} can be used interchangeably with ScriptType,
|
|
9905
|
+
* this enum contains the known values that the service supports.
|
|
9906
|
+
* ### Known values supported by the service
|
|
9907
|
+
* **Query** \
|
|
9908
|
+
* **NonQuery**
|
|
9909
|
+
*/
|
|
9910
|
+
export declare type ScriptType = string;
|
|
9911
|
+
|
|
9763
9912
|
/** The base definition of a secret type. */
|
|
9764
9913
|
export declare interface SecretBase {
|
|
9765
9914
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
@@ -10022,6 +10171,16 @@ export declare interface Sku {
|
|
|
10022
10171
|
capacity?: number;
|
|
10023
10172
|
}
|
|
10024
10173
|
|
|
10174
|
+
/** Linked service for Smartsheet. */
|
|
10175
|
+
export declare type SmartsheetLinkedService = LinkedService & {
|
|
10176
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
10177
|
+
type: "Smartsheet";
|
|
10178
|
+
/** The api token for the Smartsheet source. */
|
|
10179
|
+
apiToken: SecretBaseUnion;
|
|
10180
|
+
/** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */
|
|
10181
|
+
encryptedCredential?: any;
|
|
10182
|
+
};
|
|
10183
|
+
|
|
10025
10184
|
/** The snowflake dataset. */
|
|
10026
10185
|
export declare type SnowflakeDataset = Dataset & {
|
|
10027
10186
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
@@ -11545,6 +11704,8 @@ export declare type SynapseNotebookActivity = ExecutionActivity & {
|
|
|
11545
11704
|
type: "SynapseNotebook";
|
|
11546
11705
|
/** Synapse notebook reference. */
|
|
11547
11706
|
notebook: SynapseNotebookReference;
|
|
11707
|
+
/** The name of the big data pool which will be used to execute the notebook. */
|
|
11708
|
+
sparkPool?: BigDataPoolParametrizationReference;
|
|
11548
11709
|
/** Notebook parameters. */
|
|
11549
11710
|
parameters?: {
|
|
11550
11711
|
[propertyName: string]: NotebookParameter;
|
|
@@ -11555,8 +11716,8 @@ export declare type SynapseNotebookActivity = ExecutionActivity & {
|
|
|
11555
11716
|
export declare interface SynapseNotebookReference {
|
|
11556
11717
|
/** Synapse notebook reference type. */
|
|
11557
11718
|
type: NotebookReferenceType;
|
|
11558
|
-
/** Reference notebook name. */
|
|
11559
|
-
referenceName:
|
|
11719
|
+
/** Reference notebook name. Type: string (or Expression with resultType string). */
|
|
11720
|
+
referenceName: any;
|
|
11560
11721
|
}
|
|
11561
11722
|
|
|
11562
11723
|
/** Execute spark job activity. */
|
|
@@ -11567,6 +11728,22 @@ export declare type SynapseSparkJobDefinitionActivity = ExecutionActivity & {
|
|
|
11567
11728
|
sparkJob: SynapseSparkJobReference;
|
|
11568
11729
|
/** User specified arguments to SynapseSparkJobDefinitionActivity. */
|
|
11569
11730
|
arguments?: any[];
|
|
11731
|
+
/** The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or Expression with resultType string). */
|
|
11732
|
+
file?: any;
|
|
11733
|
+
/** The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' of the spark job definition you provide. Type: string (or Expression with resultType string). */
|
|
11734
|
+
className?: any;
|
|
11735
|
+
/** Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition you provide. */
|
|
11736
|
+
files?: any[];
|
|
11737
|
+
/** The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' of the spark job definition you provide. */
|
|
11738
|
+
targetBigDataPool?: BigDataPoolParametrizationReference;
|
|
11739
|
+
/** Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used for overriding 'executorCores' and 'executorMemory' of the spark job definition you provide. Type: string (or Expression with resultType string). */
|
|
11740
|
+
executorSize?: any;
|
|
11741
|
+
/** Spark configuration properties, which will override the 'conf' of the spark job definition you provide. */
|
|
11742
|
+
conf?: any;
|
|
11743
|
+
/** Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of the spark job definition you provide. Type: string (or Expression with resultType string). */
|
|
11744
|
+
driverSize?: any;
|
|
11745
|
+
/** Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. */
|
|
11746
|
+
numExecutors?: number;
|
|
11570
11747
|
};
|
|
11571
11748
|
|
|
11572
11749
|
/** Synapse spark job reference type. */
|
|
@@ -11625,6 +11802,34 @@ export declare type TarReadSettings = CompressionReadSettings & {
|
|
|
11625
11802
|
preserveCompressionFileNameAsFolder?: any;
|
|
11626
11803
|
};
|
|
11627
11804
|
|
|
11805
|
+
/**
|
|
11806
|
+
* Defines values for TeamDeskAuthenticationType. \
|
|
11807
|
+
* {@link KnownTeamDeskAuthenticationType} can be used interchangeably with TeamDeskAuthenticationType,
|
|
11808
|
+
* this enum contains the known values that the service supports.
|
|
11809
|
+
* ### Known values supported by the service
|
|
11810
|
+
* **Basic** \
|
|
11811
|
+
* **Token**
|
|
11812
|
+
*/
|
|
11813
|
+
export declare type TeamDeskAuthenticationType = string;
|
|
11814
|
+
|
|
11815
|
+
/** Linked service for TeamDesk. */
|
|
11816
|
+
export declare type TeamDeskLinkedService = LinkedService & {
|
|
11817
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
11818
|
+
type: "TeamDesk";
|
|
11819
|
+
/** The authentication type to use. */
|
|
11820
|
+
authenticationType: TeamDeskAuthenticationType;
|
|
11821
|
+
/** The url to connect TeamDesk source. Type: string (or Expression with resultType string). */
|
|
11822
|
+
url: any;
|
|
11823
|
+
/** The username of the TeamDesk source. Type: string (or Expression with resultType string). */
|
|
11824
|
+
userName?: any;
|
|
11825
|
+
/** The password of the TeamDesk source. */
|
|
11826
|
+
password?: SecretBaseUnion;
|
|
11827
|
+
/** The api token for the TeamDesk source. */
|
|
11828
|
+
apiToken?: SecretBaseUnion;
|
|
11829
|
+
/** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */
|
|
11830
|
+
encryptedCredential?: any;
|
|
11831
|
+
};
|
|
11832
|
+
|
|
11628
11833
|
/**
|
|
11629
11834
|
* Defines values for TeradataAuthenticationType. \
|
|
11630
11835
|
* {@link KnownTeradataAuthenticationType} can be used interchangeably with TeradataAuthenticationType,
|
|
@@ -12693,6 +12898,34 @@ export declare type XmlSource = CopySource & {
|
|
|
12693
12898
|
additionalColumns?: any;
|
|
12694
12899
|
};
|
|
12695
12900
|
|
|
12901
|
+
/**
|
|
12902
|
+
* Defines values for ZendeskAuthenticationType. \
|
|
12903
|
+
* {@link KnownZendeskAuthenticationType} can be used interchangeably with ZendeskAuthenticationType,
|
|
12904
|
+
* this enum contains the known values that the service supports.
|
|
12905
|
+
* ### Known values supported by the service
|
|
12906
|
+
* **Basic** \
|
|
12907
|
+
* **Token**
|
|
12908
|
+
*/
|
|
12909
|
+
export declare type ZendeskAuthenticationType = string;
|
|
12910
|
+
|
|
12911
|
+
/** Linked service for Zendesk. */
|
|
12912
|
+
export declare type ZendeskLinkedService = LinkedService & {
|
|
12913
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
12914
|
+
type: "Zendesk";
|
|
12915
|
+
/** The authentication type to use. */
|
|
12916
|
+
authenticationType: ZendeskAuthenticationType;
|
|
12917
|
+
/** The url to connect Zendesk source. Type: string (or Expression with resultType string). */
|
|
12918
|
+
url: any;
|
|
12919
|
+
/** The username of the Zendesk source. Type: string (or Expression with resultType string). */
|
|
12920
|
+
userName?: any;
|
|
12921
|
+
/** The password of the Zendesk source. */
|
|
12922
|
+
password?: SecretBaseUnion;
|
|
12923
|
+
/** The api token for the Zendesk source. */
|
|
12924
|
+
apiToken?: SecretBaseUnion;
|
|
12925
|
+
/** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). */
|
|
12926
|
+
encryptedCredential?: any;
|
|
12927
|
+
};
|
|
12928
|
+
|
|
12696
12929
|
/** The ZipDeflate compression read settings. */
|
|
12697
12930
|
export declare type ZipDeflateReadSettings = CompressionReadSettings & {
|
|
12698
12931
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import * as coreClient from "@azure/core-client";
|
|
9
|
-
export class ArtifactsClientContext extends coreClient.ServiceClient {
|
|
10
|
-
/**
|
|
11
|
-
* Initializes a new instance of the ArtifactsClientContext class.
|
|
12
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
13
|
-
* @param endpoint The workspace development endpoint, for example
|
|
14
|
-
* https://myworkspace.dev.azuresynapse.net.
|
|
15
|
-
* @param options The parameter options
|
|
16
|
-
*/
|
|
17
|
-
constructor(credentials, endpoint, options) {
|
|
18
|
-
if (credentials === undefined) {
|
|
19
|
-
throw new Error("'credentials' cannot be null");
|
|
20
|
-
}
|
|
21
|
-
if (endpoint === undefined) {
|
|
22
|
-
throw new Error("'endpoint' cannot be null");
|
|
23
|
-
}
|
|
24
|
-
// Initializing default values for options
|
|
25
|
-
if (!options) {
|
|
26
|
-
options = {};
|
|
27
|
-
}
|
|
28
|
-
const defaults = {
|
|
29
|
-
requestContentType: "application/json; charset=utf-8",
|
|
30
|
-
credential: credentials
|
|
31
|
-
};
|
|
32
|
-
const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.8`;
|
|
33
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
|
-
: `${packageDetails}`;
|
|
36
|
-
if (!options.credentialScopes) {
|
|
37
|
-
options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
|
|
38
|
-
}
|
|
39
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
-
userAgentPrefix
|
|
41
|
-
}, baseUri: options.endpoint || "{endpoint}" });
|
|
42
|
-
super(optionsWithDefaults);
|
|
43
|
-
// Parameter assignments
|
|
44
|
-
this.endpoint = endpoint;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=artifactsClientContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"artifactsClientContext.js","sourceRoot":"","sources":["../../src/artifactsClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAIjD,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAGlE;;;;;;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,yCAAyC,CAAC;QACjE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,YAAY,GAC1C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,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 * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\n\nexport class ArtifactsClientContext extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClientContext 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.8`;\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 }\n}\n"]}
|