Discovery#

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

Bases: BaseModel

Service discovery information.

Parameters:

data (Any)

Attributes Summary

model_config

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

Methods Summary

to_nublado_dict()

Convert to the reduced format used inside Nublado containers.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

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

Methods Documentation

to_nublado_dict()#

Convert to the reduced format used inside Nublado containers.

User science payloads using a Nublado container consume a pre-generated JSON dump of a restricted and hopefully stable subset of service discovery to allow support of possibly years-old code from older container versions. This method generates a dict containing that stripped-down data set, suitable for JSON encoding.

Returns:

Restricted subset of discovery information, suitable for JSON encoding.

Return type:

dict of dict