Module macrobond_data_api.web.web_types.metadata_methods

Classes

class MetadataMethods (session: Session)

Metadata operations

Methods

def get_attribute_information(self, *attribute_names: str) ‑> List[MetadataAttributeInformationResponse]

Get information about metadata attributes. The result will be in the same order as the request.

OAuth scope: macrobond_web_api.read_mb

Codes

200 The operation was successful.

401 Unauthorized. Missing, invalid or expired access token.

403 Forbidden. Not authorized.

404 At least one attribute was not found.

def get_value_information(self, *metadata_value: Tuple[str, str]) ‑> MetadataValueInformationResponse

Get information about metadata values. The result will be in the same order as the request.

OAuth scope: macrobond_web_api.read_mb

Codes

200 The operation was successful.

400 Malformed request.

401 Unauthorized. Missing, invalid or expired access token.

403 Forbidden. Not authorized.

404 At least one attribute or value was not found.

def list_attribute_values(self, attribute_name: str) ‑> MetadataValueInformationResponse

List all metadata attribute values. The attribute must have the property canListValues.

OAuth scope: macrobond_web_api.read_mb

Codes

200 The operation was successful.

400 Values cannot be listed for the attribute.

401 Unauthorized. Missing, invalid or expired access token.

403 Forbidden. Not authorized.

404 The attribute was not found.