-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
124 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
|
||
sources: | ||
- name: google_directory | ||
schema: kipptaf_google_directory | ||
tables: | ||
- name: src_google_directory__users | ||
external: | ||
location: gs://teamster-kipptaf/dagster/kipptaf/google/directory/users/* | ||
options: | ||
format: AVRO | ||
enable_logical_types: true |
58 changes: 58 additions & 0 deletions
58
src/dbt/kipptaf/models/google/directory/staging/stg_google_directory__users.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
select | ||
id as `id`, | ||
primaryemail as `primary_email`, | ||
orgunitpath as `org_unit_path`, | ||
recoveryemail as `recovery_email`, | ||
recoveryphone as `recovery_phone`, | ||
suspensionreason as `suspension_reason`, | ||
lastlogintime as `last_login_time`, | ||
creationtime as `creation_time`, | ||
deletiontime as `deletion_time`, | ||
isadmin as `is_admin`, | ||
isdelegatedadmin as `is_delegated_admin`, | ||
isenforcedin2sv as `is_enforced_in_2sv`, | ||
isenrolledin2sv as `is_enrolled_in_2sv`, | ||
ismailboxsetup as `is_mailbox_setup`, | ||
agreedtoterms as `agreed_to_terms`, | ||
archived as `archived`, | ||
suspended as `suspended`, | ||
changepasswordatnextlogin as `change_password_at_next_login`, | ||
includeinglobaladdresslist as `include_in_global_address_list`, | ||
ipwhitelisted as `ip_whitelisted`, | ||
thumbnailphotoetag as `thumbnail_photo_etag`, | ||
thumbnailphotourl as `thumbnail_photo_url`, | ||
hashfunction as `hash_function`, | ||
customerid as `customer_id`, | ||
etag as `etag`, | ||
kind as `kind`, | ||
|
||
{# records #} | ||
gender.addressmeas as `gender__address_me_as`, | ||
gender.customgender as `gender__custom_gender`, | ||
gender.type as `gender__type`, | ||
name.displayname as `name__display_name`, | ||
name.familyname as `name__family_name`, | ||
name.fullname as `name__full_name`, | ||
name.givenname as `name__given_name`, | ||
notes.contenttype as `notes__content_type`, | ||
notes.value as `notes__value`, | ||
|
||
{# repeated #} | ||
aliases as `aliases`, | ||
noneditablealiases as `non_editable_aliases`, | ||
|
||
{# repeated records #} | ||
addresses as `addresses`, | ||
emails as `emails`, | ||
externalids as `external_ids`, | ||
ims as `ims`, | ||
keywords as `keywords`, | ||
languages as `languages`, | ||
locations as `locations`, | ||
organizations as `organizations`, | ||
phones as `phones`, | ||
posixaccounts as `posix_accounts`, | ||
relations as `relations`, | ||
sshpublickeys as `ssh_public_keys`, | ||
websites as `websites`, | ||
from {{ source("google_directory", "src_google_directory__users") }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters