Class

OsduV1LegalService

OsduV1LegalService(osdu_client, data_partition)

Class that provides named access to OSDU V1 Legal endpoints

Constructor

# new OsduV1LegalService(osdu_client, data_partition)

Parameters:
Name Type Description
osdu_client BaseOsduClient

An implementation of the OSDU client class to broker communication with the OSDU API

data_partition string

The data partition against which requests will be made

View Source service/legal/v1.js, line 11

Methods

# async createLegalTag(tagData) → {Object}

Create a new legal tag in the given data partition

Parameters:
Name Type Description
tagData Object

The JSON representation of the tag you wish to create

View Source service/legal/v1.js, line 65

The API Response

Object

# async deleteLegalTag(tagData) → {Object}

Delete an existing legal tag in the given data partition

Parameters:
Name Type Description
tagData string

The name of the tag you wish to delete

View Source service/legal/v1.js, line 81

The API Response

Object

# async getLegalTag(name) → {Object}

Retrieve a specific legal tag in the given data partition

Parameters:
Name Type Description
name string

The name of the tag you wish to retrieve

View Source service/legal/v1.js, line 50

The API Response

Object

# async getLegalTagProperties() → {Object}

List the allowed legal tag properties and values in the given data partition

View Source service/legal/v1.js, line 57

The API Response

Object

# async getLegalTags(names) → {Object}

Get requested legal tags in the given data partition

Parameters:
Name Type Description
names Array.<string>

The list of tag names you wish to retrieve

View Source service/legal/v1.js, line 34

The API Response

Object

# async listLegalTags() → {Object}

Get all supported legal tags in the given data partition

View Source service/legal/v1.js, line 26

The API Response

Object

# async updateLegalTag(tagData) → {Object}

Update an existing legal tag in the given data partition

Parameters:
Name Type Description
tagData Object

The JSON representation of the tag you wish to update

View Source service/legal/v1.js, line 73

The API Response

Object

# async validateLegalTags(names) → {Object}

Validate requested legal tags in the given data partition

Parameters:
Name Type Description
names Array.<string>

The list of tag names you wish to validate

View Source service/legal/v1.js, line 42

The API Response

Object