DataServiceRule#

class rubin.repertoire.DataServiceRule(**data)#

Bases: VersionedServiceRule

Rule for a Phalanx service associated with a dataset.

Parameters:

data (Any)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

ivoa_standard_ids()

IVOA standard IDs for all provided standardized APIs.

version_for_id(ivoa_standard_id)

Get the API rule for a specific IVOA standards version.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'extra': 'forbid', 'validate_by_name': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

ivoa_standard_ids()#

IVOA standard IDs for all provided standardized APIs.

Return type:

set[IvoaStandardId]

version_for_id(ivoa_standard_id)#

Get the API rule for a specific IVOA standards version.

Parameters:
  • ivoa_standards_version – IVOA standards version to search for.

  • ivoa_standard_id (IvoaStandardId)

Returns:

Corresponding ApiVersionRule, or None if none was found.

Return type:

ApiVersionRule or None