Name | Type | Description | Notes |
---|---|---|---|
Name | string | ||
Description | Pointer to string | [optional] | |
Enabled | Pointer to bool | [optional] | |
ObjectTypes | []string | ||
Groups | Pointer to []int32 | [optional] | |
Users | Pointer to []int32 | [optional] | |
Actions | []string | The list of actions granted by this permission | |
Constraints | Pointer to map[string]interface{} | Queryset filter matching the applicable objects of the selected type(s) | [optional] |
func NewObjectPermissionRequest(name string, objectTypes []string, actions []string, ) *ObjectPermissionRequest
NewObjectPermissionRequest instantiates a new ObjectPermissionRequest 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 NewObjectPermissionRequestWithDefaults() *ObjectPermissionRequest
NewObjectPermissionRequestWithDefaults instantiates a new ObjectPermissionRequest 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 *ObjectPermissionRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetName(v string)
SetName sets Name field to given value.
func (o *ObjectPermissionRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *ObjectPermissionRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ObjectPermissionRequest) GetEnabled() bool
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ObjectPermissionRequest) SetEnabled(v bool)
SetEnabled sets Enabled field to given value.
func (o *ObjectPermissionRequest) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *ObjectPermissionRequest) GetObjectTypes() []string
GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) GetObjectTypesOk() (*[]string, bool)
GetObjectTypesOk returns a tuple with the ObjectTypes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ObjectPermissionRequest) SetObjectTypes(v []string)
SetObjectTypes sets ObjectTypes field to given value.
func (o *ObjectPermissionRequest) GetGroups() []int32
GetGroups returns the Groups field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) GetGroupsOk() (*[]int32, bool)
GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ObjectPermissionRequest) SetGroups(v []int32)
SetGroups sets Groups field to given value.
func (o *ObjectPermissionRequest) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o *ObjectPermissionRequest) GetUsers() []int32
GetUsers returns the Users field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) GetUsersOk() (*[]int32, bool)
GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ObjectPermissionRequest) SetUsers(v []int32)
SetUsers sets Users field to given value.
func (o *ObjectPermissionRequest) HasUsers() bool
HasUsers returns a boolean if a field has been set.
func (o *ObjectPermissionRequest) GetActions() []string
GetActions returns the Actions field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) GetActionsOk() (*[]string, bool)
GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ObjectPermissionRequest) SetActions(v []string)
SetActions sets Actions field to given value.
func (o *ObjectPermissionRequest) GetConstraints() map[string]interface{}
GetConstraints returns the Constraints field if non-nil, zero value otherwise.
func (o *ObjectPermissionRequest) GetConstraintsOk() (*map[string]interface{}, bool)
GetConstraintsOk returns a tuple with the Constraints field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ObjectPermissionRequest) SetConstraints(v map[string]interface{})
SetConstraints sets Constraints field to given value.
func (o *ObjectPermissionRequest) HasConstraints() bool
HasConstraints returns a boolean if a field has been set.
func (o *ObjectPermissionRequest) SetConstraintsNil(b bool)
SetConstraintsNil sets the value for Constraints to be an explicit nil
func (o *ObjectPermissionRequest) UnsetConstraints()
UnsetConstraints ensures that no value is present for Constraints, not even an explicit nil