diff --git a/permit/api/models.py b/permit/api/models.py index 56308d0..a87a475 100644 --- a/permit/api/models.py +++ b/permit/api/models.py @@ -2127,6 +2127,11 @@ class Config: description="optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator", title="Attributes", ) + extends: Optional[List[str]] = Field( + None, + description="list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list.", + title="Extends", + ) granted_to: Optional[DerivedRoleBlockEdit] = Field( None, description="Derived role that inherit will be applied on this role", @@ -2154,6 +2159,11 @@ class Config: description="optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator", title="Attributes", ) + extends: Optional[List[str]] = Field( + [], + description="list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list.", + title="Extends", + ) granted_to: Optional[DerivedRoleBlockRead] = Field( None, description="Derived role that inherit will be applied on this role", @@ -2222,6 +2232,11 @@ class Config: description="optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator", title="Attributes", ) + extends: Optional[List[str]] = Field( + None, + description="list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list.", + title="Extends", + ) granted_to: Optional[DerivedRoleBlockEdit] = Field( None, description="Derived role that inherit will be applied on this role", @@ -2408,6 +2423,11 @@ class Config: description="optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator", title="Attributes", ) + extends: Optional[List[str]] = Field( + None, + description="list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list.", + title="Extends", + ) granted_to: Optional[DerivedRoleBlockEdit] = Field( None, description="Derived role that inherit will be applied on this role", @@ -2442,6 +2462,11 @@ class Config: description="optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator", title="Attributes", ) + extends: Optional[List[str]] = Field( + [], + description="list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list.", + title="Extends", + ) granted_to: Optional[DerivedRoleBlockRead] = Field( {}, description="\n A derived role defintion block, typically contained whithin a role definition.\n The derived role is a role that is derived from the role definition.\n ", @@ -2500,6 +2525,11 @@ class Config: description="optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator", title="Attributes", ) + extends: Optional[List[str]] = Field( + None, + description="list of role keys that define what roles this role extends. In other words: this role will automatically inherit all the permissions of the given roles in this list.", + title="Extends", + ) granted_to: Optional[DerivedRoleBlockEdit] = Field( None, description="Derived role that inherit will be applied on this role", diff --git a/setup.py b/setup.py index 351e831..411351f 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def get_requirements(env=""): setup( name="permit", - version="2.1.0", + version="2.1.1", packages=find_packages(), author="Asaf Cohen", author_email="asaf@permit.io",