connect.permissions
connect.permissions
Permission resources.
Classes
Name | Description |
---|---|
Permission | |
Permissions |
Permission
connect.permissions.Permission(self, /, params, **kwargs)
Methods
Name | Description |
---|---|
delete | Delete the permission. |
update | Update the permission. |
delete
connect.permissions.Permission.delete()
Delete the permission.
update
connect.permissions.Permission.update(*args, **kwargs)
Update the permission.
Permissions
connect.permissions.Permissions(self, params, content_guid)
Attributes
Name | Description |
---|---|
content_guid |
Methods
Name | Description |
---|---|
count | Count the number of permissions. |
create | Create a permission. |
find | Find permissions. |
find_one | Find a permission. |
get | Get a permission. |
count
connect.permissions.Permissions.count()
Count the number of permissions.
Returns
Name | Type | Description |
---|---|---|
int |
create
connect.permissions.Permissions.create(**kwargs)
Create a permission.
Returns
Name | Type | Description |
---|---|---|
Permission |
find
connect.permissions.Permissions.find(**kwargs)
Find permissions.
Returns
Name | Type | Description |
---|---|---|
List[Permission] |
find_one
connect.permissions.Permissions.find_one(**kwargs)
Find a permission.
Returns
Name | Type | Description |
---|---|---|
Permission | None |
get
connect.permissions.Permissions.get(uid)
Get a permission.
Parameters
Name | Type | Description | Default |
---|---|---|---|
uid | str | The permission id. | required |
Returns
Name | Type | Description |
---|---|---|
Permission |