@@ -2,15 +2,18 @@ package com.vimeo.networking2
22
33import com.squareup.moshi.Json
44import com.squareup.moshi.JsonClass
5+ import com.vimeo.networking2.common.Entity
56import java.util.Date
67
78/* *
89 * A permission policy which represents a collection or permutation of certain [PermissionActions].
910 *
10- * @property uri The uri for the permission policy
11- * @property name The displayable name for the permission policy
12- * @property createdOn The date the policy was created
13- * @property modifiedOn The date the policy was last modified on
11+ * @property uri The uri for the permission policy.
12+ * @property name The displayable name for the permission policy.
13+ * @param displayName The name of the permission level, translated and ready for client display.
14+ * @param displayDescription The description of the permission level, for client display.
15+ * @property createdOn The date the policy was created.
16+ * @property modifiedOn The date the policy was last modified on.
1417 * @property permissionActions The actions the user can take.
1518 */
1619@JsonClass(generateAdapter = true )
@@ -22,6 +25,12 @@ data class PermissionPolicy(
2225 @Json(name = " name" )
2326 val name : String? = null ,
2427
28+ @Json(name = " display_name" )
29+ val displayName : String? = null ,
30+
31+ @Json(name = " display_description" )
32+ val displayDescription : String? = null ,
33+
2534 @Json(name = " created_on" )
2635 val createdOn : Date ? = null ,
2736
@@ -30,4 +39,6 @@ data class PermissionPolicy(
3039
3140 @Json(name = " permission_actions" )
3241 val permissionActions : PermissionActions ? = null
33- )
42+ ) : Entity {
43+ override val identifier: String? = uri
44+ }
0 commit comments