Skip to content

Latest commit

 

History

History
233 lines (126 loc) · 6.51 KB

ObjectPermissionRequest.md

File metadata and controls

233 lines (126 loc) · 6.51 KB

ObjectPermissionRequest

Properties

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]

Methods

NewObjectPermissionRequest

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

NewObjectPermissionRequestWithDefaults

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

GetName

func (o *ObjectPermissionRequest) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

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.

SetName

func (o *ObjectPermissionRequest) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *ObjectPermissionRequest) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

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.

SetDescription

func (o *ObjectPermissionRequest) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *ObjectPermissionRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetEnabled

func (o *ObjectPermissionRequest) GetEnabled() bool

GetEnabled returns the Enabled field if non-nil, zero value otherwise.

GetEnabledOk

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.

SetEnabled

func (o *ObjectPermissionRequest) SetEnabled(v bool)

SetEnabled sets Enabled field to given value.

HasEnabled

func (o *ObjectPermissionRequest) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

GetObjectTypes

func (o *ObjectPermissionRequest) GetObjectTypes() []string

GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.

GetObjectTypesOk

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.

SetObjectTypes

func (o *ObjectPermissionRequest) SetObjectTypes(v []string)

SetObjectTypes sets ObjectTypes field to given value.

GetGroups

func (o *ObjectPermissionRequest) GetGroups() []int32

GetGroups returns the Groups field if non-nil, zero value otherwise.

GetGroupsOk

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.

SetGroups

func (o *ObjectPermissionRequest) SetGroups(v []int32)

SetGroups sets Groups field to given value.

HasGroups

func (o *ObjectPermissionRequest) HasGroups() bool

HasGroups returns a boolean if a field has been set.

GetUsers

func (o *ObjectPermissionRequest) GetUsers() []int32

GetUsers returns the Users field if non-nil, zero value otherwise.

GetUsersOk

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.

SetUsers

func (o *ObjectPermissionRequest) SetUsers(v []int32)

SetUsers sets Users field to given value.

HasUsers

func (o *ObjectPermissionRequest) HasUsers() bool

HasUsers returns a boolean if a field has been set.

GetActions

func (o *ObjectPermissionRequest) GetActions() []string

GetActions returns the Actions field if non-nil, zero value otherwise.

GetActionsOk

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.

SetActions

func (o *ObjectPermissionRequest) SetActions(v []string)

SetActions sets Actions field to given value.

GetConstraints

func (o *ObjectPermissionRequest) GetConstraints() map[string]interface{}

GetConstraints returns the Constraints field if non-nil, zero value otherwise.

GetConstraintsOk

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.

SetConstraints

func (o *ObjectPermissionRequest) SetConstraints(v map[string]interface{})

SetConstraints sets Constraints field to given value.

HasConstraints

func (o *ObjectPermissionRequest) HasConstraints() bool

HasConstraints returns a boolean if a field has been set.

SetConstraintsNil

func (o *ObjectPermissionRequest) SetConstraintsNil(b bool)

SetConstraintsNil sets the value for Constraints to be an explicit nil

UnsetConstraints

func (o *ObjectPermissionRequest) UnsetConstraints()

UnsetConstraints ensures that no value is present for Constraints, not even an explicit nil

[Back to Model list] [Back to API list] [Back to README]