Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.11 KB

Constraint.md

File metadata and controls

33 lines (24 loc) · 1.11 KB

Constraint

Constraint on the attributes of a Resource

Properties

Name Type Description Notes
name str Name for the Resource Constraint
description str A description for the Resource Constraint [optional]
tags List[str] [optional]
attributes List[AttributeItem] List of attribute descriptions

Example

from waylay.services.resources.models.constraint import Constraint

# TODO update the JSON string below
json = "{}"
# create an instance of Constraint from a JSON string
constraint_instance = Constraint.from_json(json)
# print the JSON string representation of the object
print Constraint.to_json()

# convert the object into a dict
constraint_dict = constraint_instance.to_dict()
# create an instance of Constraint from a dict
constraint_form_dict = constraint.from_dict(constraint_dict)

[Back to Model list] [Back to API list] [Back to README]