|
| 1 | +/* |
| 2 | + * Permit.io API |
| 3 | + * Authorization as a service |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: 2.0.0 |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package io.permit.sdk.openapi.models; |
| 15 | + |
| 16 | +import javax.annotation.Generated; |
| 17 | +import com.google.gson.annotations.Expose; |
| 18 | +import com.google.gson.annotations.SerializedName; |
| 19 | + |
| 20 | + |
| 21 | +/** |
| 22 | + * GroupAddRole |
| 23 | + * <p> |
| 24 | + * |
| 25 | + * |
| 26 | + */ |
| 27 | +@Generated("jsonschema2pojo") |
| 28 | +public class GroupAddRole { |
| 29 | + /** |
| 30 | + * Role |
| 31 | + * <p> |
| 32 | + * The role key or id that will be assigned to the group. |
| 33 | + * (Required) |
| 34 | + * |
| 35 | + */ |
| 36 | + @SerializedName("role") |
| 37 | + @Expose |
| 38 | + public String role; |
| 39 | + /** |
| 40 | + * Resource |
| 41 | + * <p> |
| 42 | + * The resource key or id that the role belongs to. |
| 43 | + * (Required) |
| 44 | + * |
| 45 | + */ |
| 46 | + @SerializedName("resource") |
| 47 | + @Expose |
| 48 | + public String resource; |
| 49 | + /** |
| 50 | + * ResourceInstance |
| 51 | + * <p> |
| 52 | + * The resource instance key or id that the role belongs to. |
| 53 | + * (Required) |
| 54 | + * |
| 55 | + */ |
| 56 | + @SerializedName("resource_instance") |
| 57 | + @Expose |
| 58 | + public String resourceInstance; |
| 59 | + /** |
| 60 | + * Tenant |
| 61 | + * <p> |
| 62 | + * The tenant key or id that the role belongs to. |
| 63 | + * (Required) |
| 64 | + * |
| 65 | + */ |
| 66 | + @SerializedName("tenant") |
| 67 | + @Expose |
| 68 | + public String tenant; |
| 69 | + |
| 70 | + /** |
| 71 | + * No args constructor for use in serialization |
| 72 | + * |
| 73 | + */ |
| 74 | + public GroupAddRole() { |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Constructs a new GroupAddRole with all required identifiers. |
| 79 | + * |
| 80 | + * @param role the role key or id to assign to the group |
| 81 | + * @param resourceInstance the resource instance key or id that the role belongs to |
| 82 | + * @param resource the resource key or id that the role belongs to |
| 83 | + * @param tenant the tenant key or id that the role belongs to |
| 84 | + */ |
| 85 | + public GroupAddRole(java.lang.String role, java.lang.String resourceInstance, java.lang.String resource, java.lang.String tenant) { |
| 86 | + super(); |
| 87 | + this.role = role; |
| 88 | + this.resourceInstance = resourceInstance; |
| 89 | + this.resource = resource; |
| 90 | + this.tenant = tenant; |
| 91 | + } |
| 92 | + |
| 93 | + public GroupAddRole withRole(java.lang.String role) { |
| 94 | + this.role = role; |
| 95 | + return this; |
| 96 | + } |
| 97 | + |
| 98 | + public GroupAddRole withResourceInstanceKey(java.lang.String resourceInstance) { |
| 99 | + this.resourceInstance = resourceInstance; |
| 100 | + return this; |
| 101 | + } |
| 102 | + |
| 103 | + public GroupAddRole withResource(java.lang.String resource) { |
| 104 | + this.resource = resource; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + public GroupAddRole withTenant(java.lang.String tenant) { |
| 109 | + this.tenant = tenant; |
| 110 | + return this; |
| 111 | + } |
| 112 | +} |
| 113 | + |
0 commit comments