| Name | Type | Description | Notes |
|---|---|---|---|
| Metadata | NullableCommonMetadata | ||
| Operations | Pointer to []string | The list of allowed CRUDL operations. | [optional] |
| ResourceInstance | string | The unique identifier of the resource instance. | |
| ResourceType | string | The type of resource for which permission is being checked. This should only refer to items and not collections. | |
| UserName | string | The unique identifier of the user requesting access. | |
| UserToken | Pointer to string | The API token of the user requesting access. This can be a JWT or an internal access token. | [optional] |
func NewPermissionItem(metadata NullableCommonMetadata, resourceInstance string, resourceType string, userName string, ) *PermissionItem
NewPermissionItem instantiates a new PermissionItem 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 NewPermissionItemWithDefaults() *PermissionItem
NewPermissionItemWithDefaults instantiates a new PermissionItem 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 *PermissionItem) GetMetadata() CommonMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *PermissionItem) GetMetadataOk() (*CommonMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionItem) SetMetadata(v CommonMetadata)
SetMetadata sets Metadata field to given value.
func (o *PermissionItem) SetMetadataNil(b bool)
SetMetadataNil sets the value for Metadata to be an explicit nil
func (o *PermissionItem) UnsetMetadata()
UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil
func (o *PermissionItem) GetOperations() []string
GetOperations returns the Operations field if non-nil, zero value otherwise.
func (o *PermissionItem) GetOperationsOk() (*[]string, bool)
GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionItem) SetOperations(v []string)
SetOperations sets Operations field to given value.
func (o *PermissionItem) HasOperations() bool
HasOperations returns a boolean if a field has been set.
func (o *PermissionItem) SetOperationsNil(b bool)
SetOperationsNil sets the value for Operations to be an explicit nil
func (o *PermissionItem) UnsetOperations()
UnsetOperations ensures that no value is present for Operations, not even an explicit nil
func (o *PermissionItem) GetResourceInstance() string
GetResourceInstance returns the ResourceInstance field if non-nil, zero value otherwise.
func (o *PermissionItem) GetResourceInstanceOk() (*string, bool)
GetResourceInstanceOk returns a tuple with the ResourceInstance field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionItem) SetResourceInstance(v string)
SetResourceInstance sets ResourceInstance field to given value.
func (o *PermissionItem) GetResourceType() string
GetResourceType returns the ResourceType field if non-nil, zero value otherwise.
func (o *PermissionItem) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionItem) SetResourceType(v string)
SetResourceType sets ResourceType field to given value.
func (o *PermissionItem) GetUserName() string
GetUserName returns the UserName field if non-nil, zero value otherwise.
func (o *PermissionItem) GetUserNameOk() (*string, bool)
GetUserNameOk returns a tuple with the UserName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionItem) SetUserName(v string)
SetUserName sets UserName field to given value.
func (o *PermissionItem) GetUserToken() string
GetUserToken returns the UserToken field if non-nil, zero value otherwise.
func (o *PermissionItem) GetUserTokenOk() (*string, bool)
GetUserTokenOk returns a tuple with the UserToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionItem) SetUserToken(v string)
SetUserToken sets UserToken field to given value.
func (o *PermissionItem) HasUserToken() bool
HasUserToken returns a boolean if a field has been set.