Name | Type | Description | Notes |
---|---|---|---|
Id | float32 | The role id | |
Type | string | A role can either be a global `root` role, or a `project` role or a `custom` project role or a custom global `root-custom` role | |
Name | string | The name of the role | |
Description | Pointer to string | A more detailed description of the role and what use it's intended for | [optional] |
Permissions | []AdminPermissionSchema | A list of permissions assigned to this role |
func NewRoleWithPermissionsSchema(id float32, type_ string, name string, permissions []AdminPermissionSchema, ) *RoleWithPermissionsSchema
NewRoleWithPermissionsSchema instantiates a new RoleWithPermissionsSchema object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRoleWithPermissionsSchemaWithDefaults() *RoleWithPermissionsSchema
NewRoleWithPermissionsSchemaWithDefaults instantiates a new RoleWithPermissionsSchema object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *RoleWithPermissionsSchema) GetId() float32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *RoleWithPermissionsSchema) GetIdOk() (*float32, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RoleWithPermissionsSchema) SetId(v float32)
SetId sets Id field to given value.
func (o *RoleWithPermissionsSchema) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *RoleWithPermissionsSchema) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RoleWithPermissionsSchema) SetType(v string)
SetType sets Type field to given value.
func (o *RoleWithPermissionsSchema) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *RoleWithPermissionsSchema) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RoleWithPermissionsSchema) SetName(v string)
SetName sets Name field to given value.
func (o *RoleWithPermissionsSchema) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *RoleWithPermissionsSchema) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RoleWithPermissionsSchema) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *RoleWithPermissionsSchema) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *RoleWithPermissionsSchema) GetPermissions() []AdminPermissionSchema
GetPermissions returns the Permissions field if non-nil, zero value otherwise.
func (o *RoleWithPermissionsSchema) GetPermissionsOk() (*[]AdminPermissionSchema, bool)
GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RoleWithPermissionsSchema) SetPermissions(v []AdminPermissionSchema)
SetPermissions sets Permissions field to given value.