Skip to content

Instantly share code, notes, and snippets.

@pietern
Created June 16, 2022 12:01
Show Gist options
  • Save pietern/f3bb9002b23f6cc714a561196e477e10 to your computer and use it in GitHub Desktop.
Save pietern/f3bb9002b23f6cc714a561196e477e10 to your computer and use it in GitHub Desktop.
diff --git a/unity-catalog/catalogs/update.txt b/unity-catalog/catalogs/update.txt
index 8a11418..c391322 100644
--- a/unity-catalog/catalogs/update.txt
+++ b/unity-catalog/catalogs/update.txt
@@ -8,8 +8,10 @@ Usage: [OPTIONS]
Options:
--name TEXT Name of the catalog to update. [required]
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/catalogs.
+ --json-file PATH File containing JSON request to PATCH to /api/2.0/unity-
+ catalog/catalogs/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/catalogs/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
diff --git a/unity-catalog/external-locations/create.txt b/unity-catalog/external-locations/create.txt
index 9fb3bab..a93e420 100644
--- a/unity-catalog/external-locations/create.txt
+++ b/unity-catalog/external-locations/create.txt
@@ -13,7 +13,8 @@ Options:
external location
-s, --skip-validation Skip the validation of location's storage
credential before creation
- --json-file PATH File containing JSON request to POST.
+ --json-file PATH File containing JSON request to POST to
+ /api/2.0/unity-catalog/external-locations.
--json JSON JSON string to POST to /api/2.0/unity-
catalog/external-locations.
--debug Debug Mode. Shows full stack trace on error.
diff --git a/unity-catalog/external-locations/update.txt b/unity-catalog/external-locations/update.txt
index 41c2edb..fc7bf4f 100644
--- a/unity-catalog/external-locations/update.txt
+++ b/unity-catalog/external-locations/update.txt
@@ -12,8 +12,10 @@ Options:
tables/mounts
-s, --skip-validation Skip the validation of location's storage credential
before creation
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/external-locations.
+ --json-file PATH File containing JSON request to PATCH to
+ /api/2.0/unity-catalog/external-locations/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/external-locations/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
diff --git a/unity-catalog/metastores/update.txt b/unity-catalog/metastores/update.txt
index e10d28c..8ad99f4 100644
--- a/unity-catalog/metastores/update.txt
+++ b/unity-catalog/metastores/update.txt
@@ -8,8 +8,10 @@ Usage: [OPTIONS]
Options:
--id METASTORE_ID Unique identifier of the metastore to update. [required]
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/admin/metastores.
+ --json-file PATH File containing JSON request to PATCH to /api/2.0/unity-
+ catalog/metastores/{id}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/metastores/{id}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
diff --git a/unity-catalog/permissions/update.txt b/unity-catalog/permissions/update.txt
index 4e65a04..078e935 100644
--- a/unity-catalog/permissions/update.txt
+++ b/unity-catalog/permissions/update.txt
@@ -12,10 +12,11 @@ Options:
--table TEXT Full name of table of interest
--storage-credential TEXT Name of the storage credential of interest
--external-location TEXT Name of the external location of interest
- --json-file PATH File containing JSON of permissions change to
- PATCH.
- --json JSON JSON string to POST to /api/2.0/unity-
- catalog/permissions.
+ --json-file PATH File containing JSON request to PATCH to
+ /api/2.0/unity-
+ catalog/permissions/{securable}/{id}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/permissions/{securable}/{id}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default
profile is "DEFAULT".
diff --git a/unity-catalog/recipients/update.txt b/unity-catalog/recipients/update.txt
index 1c7047f..ea2079b 100644
--- a/unity-catalog/recipients/update.txt
+++ b/unity-catalog/recipients/update.txt
@@ -7,8 +7,9 @@ Usage: [OPTIONS]
Options:
--name TEXT Name of the recipient who needs to be updated. [required]
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/unity-
+ --json-file PATH File containing JSON request to PATCH to /api/2.0/unity-
+ catalog/recipients/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
catalog/recipients/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
diff --git a/unity-catalog/schemas/update.txt b/unity-catalog/schemas/update.txt
index 815a53e..f44e087 100644
--- a/unity-catalog/schemas/update.txt
+++ b/unity-catalog/schemas/update.txt
@@ -9,8 +9,10 @@ Usage: [OPTIONS]
Options:
--full-name TEXT Full name (<catalog>.<schema>) of the schema to update.
[required]
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/schemas.
+ --json-file PATH File containing JSON request to PATCH to /api/2.0/unity-
+ catalog/schemas/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/schemas/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
diff --git a/unity-catalog/shares/update-permissions.txt b/unity-catalog/shares/update-permissions.txt
index 24d373d..45ea319 100644
--- a/unity-catalog/shares/update-permissions.txt
+++ b/unity-catalog/shares/update-permissions.txt
@@ -8,7 +8,8 @@ Usage: [OPTIONS]
Options:
--name TEXT Name of the share whose permissions are updated.
[required]
- --json-file PATH File containing JSON request to POST.
+ --json-file PATH File containing JSON request to POST to /api/2.0/unity-
+ catalog/shares/{name}/permissions.
--json JSON JSON string to POST to /api/2.0/unity-
catalog/shares/{name}/permissions.
--debug Debug Mode. Shows full stack trace on error.
diff --git a/unity-catalog/shares/update.txt b/unity-catalog/shares/update.txt
index a00c55c..8387b99 100644
--- a/unity-catalog/shares/update.txt
+++ b/unity-catalog/shares/update.txt
@@ -9,8 +9,10 @@ Options:
--name TEXT Name of the share to update. [required]
--add-table TEXT Full name of table to add to share
--remove-table TEXT Full name of table to remove from share
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/shares.
+ --json-file PATH File containing JSON request to PATCH to
+ /api/2.0/unity-catalog/shares/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/shares/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
diff --git a/unity-catalog/storage-credentials/create.txt b/unity-catalog/storage-credentials/create.txt
index b3079ca..1a090c9 100644
--- a/unity-catalog/storage-credentials/create.txt
+++ b/unity-catalog/storage-credentials/create.txt
@@ -9,7 +9,8 @@ Usage: [OPTIONS]
Options:
-s, --skip-validation Skip the validation of new credential info before
creation
- --json-file PATH File containing JSON request to POST.
+ --json-file PATH File containing JSON request to POST to
+ /api/2.0/unity-catalog/storage-credentials.
--json JSON JSON string to POST to /api/2.0/unity-
catalog/storage-credentials.
--debug Debug Mode. Shows full stack trace on error.
diff --git a/unity-catalog/storage-credentials/update.txt b/unity-catalog/storage-credentials/update.txt
index 9e52093..6a0cf1a 100644
--- a/unity-catalog/storage-credentials/update.txt
+++ b/unity-catalog/storage-credentials/update.txt
@@ -10,8 +10,10 @@ Options:
--name TEXT Name of the storage credential to update. [required]
-s, --skip-validation Skip the validation of new credential info before
update
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/storage-credentials.
+ --json-file PATH File containing JSON request to PATCH to
+ /api/2.0/unity-catalog/storage-credentials/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/storage-credentials/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
diff --git a/unity-catalog/tables/create.txt b/unity-catalog/tables/create.txt
index e556da2..99fa6dd 100644
--- a/unity-catalog/tables/create.txt
+++ b/unity-catalog/tables/create.txt
@@ -10,7 +10,8 @@ Usage: [OPTIONS]
properties of the newly-created table.
Options:
- --json-file PATH File containing JSON request to POST.
+ --json-file PATH File containing JSON request to POST to /api/2.0/unity-
+ catalog/tables.
--json JSON JSON string to POST to /api/2.0/unity-catalog/tables.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
diff --git a/unity-catalog/tables/update.txt b/unity-catalog/tables/update.txt
index 6046c21..d5fe3bc 100644
--- a/unity-catalog/tables/update.txt
+++ b/unity-catalog/tables/update.txt
@@ -12,8 +12,10 @@ Usage: [OPTIONS]
Options:
--full-name TEXT Full name (<catalog>.<schema>.<table>) of the table to
update. [required]
- --json-file PATH File containing JSON request to PATCH.
- --json JSON JSON string to POST to /api/2.0/tables.
+ --json-file PATH File containing JSON request to PATCH to /api/2.0/unity-
+ catalog/tables/{name}.
+ --json JSON JSON string to PATCH to /api/2.0/unity-
+ catalog/tables/{name}.
--debug Debug Mode. Shows full stack trace on error.
--profile TEXT CLI connection profile to use. The default profile is
"DEFAULT".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment