Skip to main content

Collibra Protect API

Project description

collibra-protect_100

This API allows you to manage groups.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import collibra_protect 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import collibra_protect

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import collibra_protect
from collibra_protect.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = collibra_protect.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_protect.CustomMaskingsApi(collibra_protect.ApiClient(configuration))
body = collibra_protect.AddCustomMaskingRequest() # AddCustomMaskingRequest | The new custom masking you want to add.

try:
    # Add a new custom masking
    api_response = api_instance.add_custom_masking(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomMaskingsApi->add_custom_masking: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_protect.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_protect.CustomMaskingsApi(collibra_protect.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The universally unique identifier (UUID) of the custom masking.

try:
    # Delete a custom masking
    api_instance.delete_custom_masking(id)
except ApiException as e:
    print("Exception when calling CustomMaskingsApi->delete_custom_masking: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_protect.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_protect.CustomMaskingsApi(collibra_protect.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The universally unique identifier (UUID) of the custom masking.

try:
    # Retrieve a custom masking
    api_response = api_instance.get_custom_masking(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomMaskingsApi->get_custom_masking: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_protect.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_protect.CustomMaskingsApi(collibra_protect.ApiClient(configuration))
limit = 25 # int | This is the maximum number of results that may be returned. Fewer may be returned than the value of <code>limit</code>.  Do not depend on the number of results being fewer than the <code>limit</code> value to indicate that your query reached the end of the list of data, use the absence of <code>after</code> (see Cursors) instead. For example, if you set <code>limit</code> to 10 and 9 results are returned, there may be more data available.  If not set, the default limit (limit = <code>25</code>) will be used. The maximum value for this parameter is <code>500</code>.  (optional) (default to 25)
after = 'after_example' # str | This is the cursor that points to the end of the page of data that has been returned. (optional)

try:
    # List custom maskings
    api_response = api_instance.list_custom_maskings(limit=limit, after=after)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomMaskingsApi->list_custom_maskings: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_protect.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_protect.CustomMaskingsApi(collibra_protect.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The universally unique identifier (UUID) of the custom masking.
body = collibra_protect.ChangeCustomMaskingRequest() # ChangeCustomMaskingRequest | The changes that need to be applied to the custom masking. (optional)

try:
    # Update a custom masking
    api_response = api_instance.patch_custom_masking(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomMaskingsApi->patch_custom_masking: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /rest/protect/v1

Class Method HTTP request Description
CustomMaskingsApi add_custom_masking POST /customMaskings Add a new custom masking
CustomMaskingsApi delete_custom_masking DELETE /customMaskings/{id} Delete a custom masking
CustomMaskingsApi get_custom_masking GET /customMaskings/{id} Retrieve a custom masking
CustomMaskingsApi list_custom_maskings GET /customMaskings List custom maskings
CustomMaskingsApi patch_custom_masking PATCH /customMaskings/{id} Update a custom masking
DataSourcesApi add_data_source POST /dataSources Add a new data source
DataSourcesApi delete_data_source DELETE /dataSources/{id} Delete a data source
DataSourcesApi get_data_source GET /dataSources/{id} Retrieve a data source
DataSourcesApi list_data_sources GET /dataSources List data sources
DataSourcesApi patch_data_source PATCH /dataSources/{id} Update a data source
GroupsApi add_group POST /groups Add a new group
GroupsApi delete_group DELETE /groups/{id} Delete a group
GroupsApi get_group GET /groups/{id} Retrieve a group
GroupsApi list_groups GET /groups List groups
GroupsApi patch_group PATCH /groups/{id} Update a group
PrescriptivePathsApi add_prescriptive_path POST /prescriptivePaths Add a new prescriptive path
PrescriptivePathsApi delete_prescriptive_path DELETE /prescriptivePaths/{assetTypeId} Delete a prescriptive path
PrescriptivePathsApi get_prescriptive_path GET /prescriptivePaths/{assetTypeId} Retrieve a prescriptive path
PrescriptivePathsApi list_asset_types GET /prescriptivePaths/assetTypes List asset types supported by Protect
PrescriptivePathsApi list_prescriptive_paths GET /prescriptivePaths Lists all available prescriptive paths
PrescriptivePathsApi patch_prescriptive_path PATCH /prescriptivePaths/{assetTypeId} Update a prescriptive path

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collibra-protect_100-1.0.0.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

collibra_protect_100-1.0.0-py3-none-any.whl (90.2 kB view details)

Uploaded Python 3

File details

Details for the file collibra-protect_100-1.0.0.tar.gz.

File metadata

  • Download URL: collibra-protect_100-1.0.0.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for collibra-protect_100-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2078804ae0f2b3a075005bf058e2ad485d44d7fc715b85c2176606c0958c08e
MD5 b994c6cad373a3461e54c0260180c5e5
BLAKE2b-256 772475e72b3caa6bd193be0535bf3e54de06ea178f446cd62e8103bc66043195

See more details on using hashes here.

Provenance

File details

Details for the file collibra_protect_100-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collibra_protect_100-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22f7aa3c679622c297f113d881009d20337f9d3284922ab44ec35e7389b675e4
MD5 b998eb745d416b9033c04126a5652b9c
BLAKE2b-256 f4a2b496470e44097586b8ec6f16d2a0680287947b5c34957dffe580841c0d0d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page