Skip to content

Commit

Permalink
Add snowflake v2 linkedService (#26336)
Browse files Browse the repository at this point in the history
* Add snowflake v2 linkedService

* fix prettier

* update snowflakeV2 linkedService

* fix prettier

* Add snowflake v2 copysource and dataset

* Fix prettier

* Add swagger changes for synapse

* fix prettier

* remove AAD auth

* Update synapse linkedService

* Fix prettier

* snowflakeV2 add service principal auth

* remove dfe-string

* fix prettier check issue
  • Loading branch information
ruowan authored Jan 16, 2024
1 parent 571a9b7 commit 05c4049
Show file tree
Hide file tree
Showing 6 changed files with 318 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3523,6 +3523,26 @@
"typeProperties"
]
},
"SnowflakeV2Dataset": {
"x-ms-discriminator-value": "SnowflakeV2Table",
"description": "The snowflake dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Snowflake dataset properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SnowflakeDatasetTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SnowflakeDatasetTypeProperties": {
"description": "Snowflake dataset properties.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7452,6 +7452,106 @@
"connectionString"
]
},
"SnowflakeV2LinkedService": {
"x-ms-discriminator-value": "SnowflakeV2",
"description": "Snowflake linked service.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/LinkedService"
}
],
"properties": {
"typeProperties": {
"description": "Snowflake linked service properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SnowflakeLinkedV2ServiceTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SnowflakeLinkedV2ServiceTypeProperties": {
"description": "Snowflake linked service properties.",
"type": "object",
"properties": {
"accountIdentifier": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure"
},
"user": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The name of the Snowflake user."
},
"password": {
"$ref": "../datafactory.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of password in connection string."
},
"database": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The name of the Snowflake database."
},
"warehouse": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The name of the Snowflake warehouse."
},
"authenticationType": {
"x-ms-enum": {
"name": "SnowflakeAuthenticationType",
"modelAsString": true
},
"enum": [
"Basic",
"KeyPair",
"AADServicePrincipal"
],
"type": "string",
"default": "Basic",
"description": "The type used for authentication. Type: string."
},
"clientId": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication."
},
"clientSecret": {
"$ref": "../datafactory.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of client secret for AADServicePrincipal authentication."
},
"tenantId": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication."
},
"scope": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication."
},
"privateKey": {
"$ref": "../datafactory.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of privateKey for KeyPair auth."
},
"privateKeyPassphrase": {
"$ref": "../datafactory.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key."
},
"encryptedCredential": {
"type": "string",
"description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string."
}
},
"required": [
"accountIdentifier",
"database",
"warehouse"
]
},
"SharePointOnlineListLinkedService": {
"x-ms-discriminator-value": "SharePointOnlineList",
"description": "SharePoint Online List linked service.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4293,6 +4293,29 @@
"exportSettings"
]
},
"SnowflakeV2Source": {
"description": "A copy activity snowflake source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"query": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "Snowflake Sql query. Type: string (or Expression with resultType string)."
},
"exportSettings": {
"$ref": "#/definitions/SnowflakeExportCopyCommand",
"description": "Snowflake export settings."
}
},
"required": [
"exportSettings"
]
},
"ExportSettings": {
"description": "Export command settings.",
"discriminator": "type",
Expand Down Expand Up @@ -5233,6 +5256,26 @@
}
}
},
"SnowflakeV2Sink": {
"description": "A copy activity snowflake sink.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySink"
}
],
"properties": {
"preCopyScript": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "SQL pre-copy script. Type: string (or Expression with resultType string)."
},
"importSettings": {
"$ref": "#/definitions/SnowflakeImportCopyCommand",
"description": "Snowflake import settings."
}
}
},
"ImportSettings": {
"description": "Import command settings.",
"discriminator": "type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3361,6 +3361,26 @@
"typeProperties"
]
},
"SnowflakeV2Dataset": {
"x-ms-discriminator-value": "SnowflakeV2Table",
"description": "The snowflake dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Snowflake dataset properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SnowflakeDatasetTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SnowflakeDatasetTypeProperties": {
"description": "Snowflake dataset properties.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6832,6 +6832,99 @@
"connectionString"
]
},
"SnowflakeV2LinkedService": {
"x-ms-discriminator-value": "SnowflakeV2",
"description": "Snowflake linked service.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/LinkedService"
}
],
"properties": {
"typeProperties": {
"description": "Snowflake linked service properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SnowflakeLinkedV2ServiceTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"SnowflakeLinkedV2ServiceTypeProperties": {
"description": "Snowflake linked service properties.",
"type": "object",
"properties": {
"accountIdentifier": {
"type": "object",
"description": "The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure"
},
"user": {
"type": "object",
"description": "The name of the Snowflake user."
},
"password": {
"$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of password in connection string."
},
"database": {
"type": "object",
"description": "The name of the Snowflake database."
},
"warehouse": {
"type": "object",
"description": "The name of the Snowflake warehouse."
},
"authenticationType": {
"x-ms-enum": {
"name": "SnowflakeAuthenticationType",
"modelAsString": true
},
"enum": [
"Basic",
"KeyPair",
"AADServicePrincipal"
],
"type": "string",
"default": "Basic",
"description": "The type used for authentication. Type: string."
},
"clientId": {
"type": "object",
"description": "The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication."
},
"clientSecret": {
"$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of client secret for AADServicePrincipal authentication."
},
"tenantId": {
"type": "object",
"description": "The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication."
},
"scope": {
"type": "object",
"description": "The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication."
},
"privateKey": {
"$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of privateKey for KeyPair auth."
},
"privateKeyPassphrase": {
"$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key."
},
"encryptedCredential": {
"type": "string",
"description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string."
}
},
"required": [
"accountIdentifier",
"database",
"warehouse"
]
},
"SharePointOnlineListLinkedService": {
"x-ms-discriminator-value": "SharePointOnlineList",
"description": "SharePoint Online List linked service.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3802,6 +3802,28 @@
"exportSettings"
]
},
"SnowflakeV2Source": {
"description": "A copy activity snowflake source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"query": {
"type": "object",
"description": "Snowflake Sql query. Type: string (or Expression with resultType string)."
},
"exportSettings": {
"$ref": "#/definitions/SnowflakeExportCopyCommand",
"description": "Snowflake export settings."
}
},
"required": [
"exportSettings"
]
},
"ExportSettings": {
"description": "Export command settings.",
"discriminator": "type",
Expand Down Expand Up @@ -4555,6 +4577,26 @@
}
}
},
"SnowflakeV2Sink": {
"description": "A copy activity snowflake sink.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySink"
}
],
"properties": {
"preCopyScript": {
"type": "object",
"x-ms-format": "dfe-string",
"description": "SQL pre-copy script. Type: string (or Expression with resultType string)."
},
"importSettings": {
"$ref": "#/definitions/SnowflakeImportCopyCommand",
"description": "Snowflake import settings."
}
}
},
"ImportSettings": {
"description": "Import command settings.",
"discriminator": "type",
Expand Down

0 comments on commit 05c4049

Please sign in to comment.