Name |
Type |
Description |
Notes |
role_id |
str |
unique id of the role to which policy is assigned |
|
title |
str |
The title can contain any UTF-8 character, used to provide a human-readable name for the policy. Can also be left empty. <br/> Example: `Policy title` |
[optional] |
resource |
str |
The resource to which policy is assigned in this format `namespace:uuid`. <br/> Example: `app/guardian:70f69c3a-334b-4f25-90b8-4d4f3be6b8e2` |
|
principal |
str |
principal is the user or group to which policy is assigned. The principal id must be prefixed with its namespace id in this format `namespace:uuid`. The namespace can be `app/user`, `app/group` or `app/serviceuser` (coming up!) and uuid is the unique id of the principal. <br/> Example: `app/user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` |
|
metadata |
object |
Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> Example: `{"labels": {"key": "value"}, "description": "Policy description"}` |
[optional] |
from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody
# TODO update the JSON string below
json = "{}"
# create an instance of V1beta1PolicyRequestBody from a JSON string
v1beta1_policy_request_body_instance = V1beta1PolicyRequestBody.from_json(json)
# print the JSON string representation of the object
print V1beta1PolicyRequestBody.to_json()
# convert the object into a dict
v1beta1_policy_request_body_dict = v1beta1_policy_request_body_instance.to_dict()
# create an instance of V1beta1PolicyRequestBody from a dict
v1beta1_policy_request_body_form_dict = v1beta1_policy_request_body.from_dict(v1beta1_policy_request_body_dict)
[Back to Model list] [Back to API list] [Back to README]