Skip to content

Commit

Permalink
Merge branch 'master' into kustomer-v1
Browse files Browse the repository at this point in the history
  • Loading branch information
erinkcochran87 committed Apr 28, 2020
2 parents fd88b21 + d139967 commit a88c94c
Show file tree
Hide file tree
Showing 115 changed files with 2,749 additions and 1,894 deletions.
37 changes: 36 additions & 1 deletion _account-security/security/encryption/ssh-for-microsoft-azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ steps:
{{ ip-list | strip }}
```
**Note**: You may also want to add your own IP address(es) to this list. This ensures that you'll also be able to connect to the database via the virtual machine as needed.
- **Source port ranges**: Enter `22`.
- **Protocol**: Select **TCP**.
- **Action**: Select **Allow**.
Expand Down Expand Up @@ -148,7 +150,40 @@ steps:
- title: "Create a server firewall rule for the virtual machine"
anchor: "create-server-firewall-rule-for-vm"
content: |
{% include shared/whitelisting-ips/{{ page.hosting-type }}.html type="ssh" %}
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a class="noCrossRef accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse-integration-setup-vm">I'm connecting an integration.</a>
</h4>
</div>
<div id="collapse-integration-setup-vm" class="panel-collapse collapse noCrossRef">
<div class="panel-body">
{% capture integration-copy %}
{% include shared/whitelisting-ips/{{ page.hosting-type }}.html connection-type="integration" type="ssh" %}
{% endcapture %}
{{ integration-copy | markdownify }}
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a class="noCrossRef accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse-destination-setup-vm">I'm connecting a destination.</a>
</h4>
</div>
<div id="collapse-destination-setup-vm" class="panel-collapse collapse noCrossRef">
<div class="panel-body">
{% capture integration-copy %}
{% include shared/whitelisting-ips/{{ page.hosting-type }}.html connection-type="destination" type="ssh" %}
{% endcapture %}
{{ integration-copy | markdownify }}
</div>
</div>
</div>
</div>
- title: "Retrieve your Public Key"
anchor: "retrieve-your-public-key"
Expand Down
92 changes: 92 additions & 0 deletions _data/connect/core-objects/notifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# ---------------------------- #
# NOTIFICATION CORE OBJECT #
# ---------------------------- #

title: "Notifications"
section: "#notifications"
object: "#notification--object"
base: "/notifications/public/v1/api"
description: "An object representing a notification configuration in Stitch."


# ---------------------------- #
# CUSTOM EMAIL NOTIFICATIONS #
# ---------------------------- #

custom-emails:
base: "{{ site.data.connect.core-objects.notifications.base }}/custom-emails"
post:
name: "{{ site.data.connect.core-objects.notifications.custom-emails.base | flatify }}"
title: "Create a custom email"
method: "post"
anchor: "#create-custom-notification-recipient"
description: "Creates a custom email notification recipient."

disable:
name: "{{ site.data.connect.core-objects.notifications.custom-emails.base | flatify }}/{id}"
title: "Disable a custom email"
method: "put"
anchor: "#disable-custom-notification-recipient"
description: "Disables (pauses) an existing custom email notification recipient."

re-enable:
name: "{{ site.data.connect.core-objects.notifications.custom-emails.base | flatify }}/{id}"
title: "Re-enable a custom email"
method: "put"
anchor: "#enable-custom-notification-recipient"
description: "Re-enables (unpauses) an existing custom email notification recipient."

list:
name: "{{ site.data.connect.core-objects.notifications.custom-emails.base | flatify }}"
title: "List custom emails"
method: "get"
anchor: "#list-custom-notification-recipients"
description: "Retrieves a list of all custom email notification recipients for a Stitch account."

delete:
name: "{{ site.data.connect.core-objects.notifications.custom-emails.base | flatify }}/{id}"
title: "Delete a custom email"
method: "delete"
anchor: "#delete-custom-notification-recipient"
description: "Deletes an existing custom email notification recipient."

# ------------------------------ #
# POST-LOAD HOOK NOTIFICATIONS #
# ------------------------------ #

hooks:
base: "{{ site.data.connect.core-objects.notifications.base }}/hooks"
post:
name: "{{ site.data.connect.core-objects.notifications.hooks.base | flatify }}"
title: "Create a webhook"
method: "post"
anchor: "#create-hook-notification"
description: "Creates a hook notification."

disable:
name: "{{ site.data.connect.core-objects.notifications.hooks.base | flatify }}/{id}"
title: "Disable a webhook"
method: "put"
anchor: "#disable-hook-notification"
description: "Disables an existing hook notification."

re-enable:
name: "{{ site.data.connect.core-objects.notifications.hooks.base | flatify }}/{id}"
title: "Re-enable a webhook"
method: "put"
anchor: "#re-enable-hook-notification"
description: "Re-enables a disabled hook notification."

list:
name: "{{ site.data.connect.core-objects.notifications.hooks.base | flatify }}"
title: "List webhooks"
method: "get"
anchor: "#list-hook-notifications"
description: "Retrieves a list of all hook notifications for a Stitch account."

delete:
name: "{{ site.data.connect.core-objects.notifications.hooks.base | flatify }}/{id}"
title: "Delete a webhook"
method: "delete"
anchor: "#delete-hook-notification"
description: "Deletes an existing hook notification."
71 changes: 71 additions & 0 deletions _data/connect/request-headers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# -------------------------- #
# CONNECT REQUEST HEADERS #
# -------------------------- #


# -------------------------- #
# GET REQUESTS #
# -------------------------- #

get:
without-body: |
curl "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json'
no-token-required: |
curl "{{ api.base-url }}{{ request-url | flatify }}"
# -------------------------- #
# POST REQUESTS #
# -------------------------- #

post:
user-agent: |
curl -X "POST" "[REQUEST-URL]" \
-H 'Content-Type: application/json' \
-H 'User-Agent: StitchLoadingWebhook'
no-token-required: |
curl -X "POST" "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Content-Type: application/json' \
-d $
without-body: |
curl -X "POST" "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json'
with-body: |
curl -X "POST" "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d $
# -------------------------- #
# PUT REQUESTS #
# -------------------------- #

put:
without-body: |
curl -X "PUT" "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json'
with-body: |
curl -X "PUT" "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d $
# -------------------------- #
# DELETE REQUESTS #
# -------------------------- #

delete: |
curl -X "DELETE" "{{ api.base-url }}{{ request-url | flatify }}" \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json'
2 changes: 1 addition & 1 deletion _data/destinations/bigquery/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ released-versions:
# full release: "October 2, 2017"
date-last-connection: "February 4, 2020"
deprecation-date: ""
sunset-date: ""
sunset-date: ""
116 changes: 34 additions & 82 deletions _data/import-api/code-examples/requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,86 +2,38 @@
# EXAMPLE CURL REQUESTS #
# -------------------------- #

get-status: |
curl {{ site.data.import-api.api.base-url }}{{ site.data.import-api.core-objects.api-status.url }}
validate-request: |
curl -X POST {{ site.data.import-api.api.base-url }}{{ site.data.import-api.core-objects.validate.url }} \
-H 'Authorization: Bearer <IMPORT_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d $'
{
"table_name": "customers",
"schema": {
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"age": {
"type": "integer"
},
"has_magic": {
"type": "boolean"
}
}
},
"messages": [
{
"action": "upsert",
"sequence": 1565880017,
"data": {
"id": 1,
"name": "Finn",
"age": 15,
"has_magic": false
}
}
],
"key_names": [
"id"
]
}
push-data: |
curl -X POST {{ site.data.import-api.api.base-url }}{{ site.data.import-api.core-objects.batch.url }} \
-H 'Authorization: Bearer <IMPORT_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d $'
{
"table_name": "customers",
"schema": {
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"age": {
"type": "integer"
},
"has_magic": {
"type": "boolean"
}
}
},
"messages": [
{
"action": "upsert",
"sequence": 1565880017,
"data": {
"id": 1,
"name": "Finn",
"age": 15,
"has_magic": false
}
}
],
"key_names": [
"id"
]
}
'{
"table_name":"customers",
"schema":{
"properties":{
"id":{
"type":"integer"
},
"name":{
"type":"string"
},
"age":{
"type":"integer"
},
"has_magic":{
"type":"boolean"
}
}
},
"messages":[
{
"action":"upsert",
"sequence":1565880017,
"data":{
"id":1,
"name":"Finn",
"age":15,
"has_magic":false
}
}
],
"key_names":[
"id"
]
}'
21 changes: 21 additions & 0 deletions _data/taps/extraction/database-setup/server-settings/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@ defaults:
**Note**: This is applicable when using a read replica.


# -------------------------- #
# AZURE SETTINGS #
# -------------------------- #

microsoft-azure-mysql:
- name: *binlog-row-image-name
value: *binlog-row-image-value
description: *binlog-row-image-description
doc-link: "https://docs.microsoft.com/en-us/azure/mysql/howto-data-in-replication#configure-the-master-server"

- name: *binlog-expire-logs-seconds-name
value: *binlog-expire-logs-seconds-value
description: *binlog-expire-logs-seconds-description
doc-link: "https://docs.microsoft.com/en-us/azure/mysql/howto-data-in-replication#configure-the-master-server"

- name: *log-slave-update-name
value: *log-slave-update-value
description: *log-slave-update-description
doc-link: "https://docs.microsoft.com/en-us/azure/mysql/howto-data-in-replication#configure-the-master-server"


# -------------------------- #
# CLOUDSQL SETTINGS #
# -------------------------- #
Expand Down
Loading

0 comments on commit a88c94c

Please sign in to comment.