Name | Type | Description | Notes |
---|---|---|---|
Permissions | []string | List of permissions. | |
SubjectType | string | Type of subject for the permission. Valid values are: `role`. | |
SubjectId | string | The identifier that belongs to the subject type chosen above. For e.g. if the subjectType is set to `role`, subjectId should be the identifier of a role. | |
TargetId | string | The identifier that belongs to the resource this permission assignment applies to. | |
CreatedAt | time.Time | Creation timestamp in UTC in RFC3339 format. | |
CreatedBy | string | Identifier of the user who created the resource. | |
ModifiedAt | time.Time | Last modification timestamp in UTC. | |
ModifiedBy | string | Identifier of the user who last modified the resource. |
func NewPermissionStatement(permissions []string, subjectType string, subjectId string, targetId string, createdAt time.Time, createdBy string, modifiedAt time.Time, modifiedBy string, ) *PermissionStatement
NewPermissionStatement instantiates a new PermissionStatement 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 NewPermissionStatementWithDefaults() *PermissionStatement
NewPermissionStatementWithDefaults instantiates a new PermissionStatement 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 *PermissionStatement) GetPermissions() []string
GetPermissions returns the Permissions field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetPermissionsOk() (*[]string, 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 *PermissionStatement) SetPermissions(v []string)
SetPermissions sets Permissions field to given value.
func (o *PermissionStatement) GetSubjectType() string
GetSubjectType returns the SubjectType field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetSubjectTypeOk() (*string, bool)
GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetSubjectType(v string)
SetSubjectType sets SubjectType field to given value.
func (o *PermissionStatement) GetSubjectId() string
GetSubjectId returns the SubjectId field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetSubjectIdOk() (*string, bool)
GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetSubjectId(v string)
SetSubjectId sets SubjectId field to given value.
func (o *PermissionStatement) GetTargetId() string
GetTargetId returns the TargetId field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetTargetIdOk() (*string, bool)
GetTargetIdOk returns a tuple with the TargetId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetTargetId(v string)
SetTargetId sets TargetId field to given value.
func (o *PermissionStatement) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *PermissionStatement) GetCreatedBy() string
GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetCreatedByOk() (*string, bool)
GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetCreatedBy(v string)
SetCreatedBy sets CreatedBy field to given value.
func (o *PermissionStatement) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetModifiedAt(v time.Time)
SetModifiedAt sets ModifiedAt field to given value.
func (o *PermissionStatement) GetModifiedBy() string
GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise.
func (o *PermissionStatement) GetModifiedByOk() (*string, bool)
GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PermissionStatement) SetModifiedBy(v string)
SetModifiedBy sets ModifiedBy field to given value.