{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/scaleway.iam.v1alpha1.Policy", "title": "scaleway.iam.v1alpha1.Policy", "type": "object", "properties": { "id": { "type": "string", "description": "Id of the policy." }, "name": { "type": "string", "description": "Name of the policy." }, "description": { "type": "string", "description": "Description of the policy." }, "organization_id": { "type": "string", "description": "Organization ID of the policy." }, "created_at": { "type": "string", "description": "Date and time of policy creation. (RFC 3339 format)", "format": "date-time", "example": "2022-03-22T12:34:56.123456Z", "nullable": true }, "updated_at": { "type": "string", "description": "Date and time of last policy update. (RFC 3339 format)", "format": "date-time", "example": "2022-03-22T12:34:56.123456Z", "nullable": true }, "editable": { "type": "boolean", "description": "Defines whether or not a policy is editable." }, "deletable": { "type": "boolean", "description": "Defines whether or not a policy is deletable." }, "managed": { "type": "boolean", "description": "Defines whether or not a policy is managed." }, "nb_rules": { "type": "integer", "description": "Number of rules of the policy.", "format": "uint32" }, "nb_scopes": { "type": "integer", "description": "Number of policy scopes.", "format": "uint32" }, "nb_permission_sets": { "type": "integer", "description": "Number of permission sets of the policy.", "format": "uint32" }, "tags": { "type": "array", "description": "Tags associated with the policy.", "items": { "type": "string" } }, "user_id": { "type": "string", "description": "ID of the user attributed to the policy.", "nullable": true, "x-one-of": "principal" }, "group_id": { "type": "string", "description": "ID of the group attributed to the policy.", "nullable": true, "x-one-of": "principal" }, "application_id": { "type": "string", "description": "ID of the application attributed to the policy.", "nullable": true, "x-one-of": "principal" }, "no_principal": { "type": "boolean", "description": "Defines whether or not a policy is attributed to a principal.", "nullable": true, "x-one-of": "principal" } }, "x-properties-order": [ "id", "name", "description", "organization_id", "created_at", "updated_at", "editable", "deletable", "managed", "nb_rules", "nb_scopes", "nb_permission_sets", "tags", "user_id", "group_id", "application_id", "no_principal" ] }