Skip to content

Latest commit

 

History

History
198 lines (105 loc) · 5.99 KB

PermissionStatement.md

File metadata and controls

198 lines (105 loc) · 5.99 KB

PermissionStatement

Properties

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.

Methods

NewPermissionStatement

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

NewPermissionStatementWithDefaults

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

GetPermissions

func (o *PermissionStatement) GetPermissions() []string

GetPermissions returns the Permissions field if non-nil, zero value otherwise.

GetPermissionsOk

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.

SetPermissions

func (o *PermissionStatement) SetPermissions(v []string)

SetPermissions sets Permissions field to given value.

GetSubjectType

func (o *PermissionStatement) GetSubjectType() string

GetSubjectType returns the SubjectType field if non-nil, zero value otherwise.

GetSubjectTypeOk

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.

SetSubjectType

func (o *PermissionStatement) SetSubjectType(v string)

SetSubjectType sets SubjectType field to given value.

GetSubjectId

func (o *PermissionStatement) GetSubjectId() string

GetSubjectId returns the SubjectId field if non-nil, zero value otherwise.

GetSubjectIdOk

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.

SetSubjectId

func (o *PermissionStatement) SetSubjectId(v string)

SetSubjectId sets SubjectId field to given value.

GetTargetId

func (o *PermissionStatement) GetTargetId() string

GetTargetId returns the TargetId field if non-nil, zero value otherwise.

GetTargetIdOk

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.

SetTargetId

func (o *PermissionStatement) SetTargetId(v string)

SetTargetId sets TargetId field to given value.

GetCreatedAt

func (o *PermissionStatement) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

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.

SetCreatedAt

func (o *PermissionStatement) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetCreatedBy

func (o *PermissionStatement) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.

GetCreatedByOk

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.

SetCreatedBy

func (o *PermissionStatement) SetCreatedBy(v string)

SetCreatedBy sets CreatedBy field to given value.

GetModifiedAt

func (o *PermissionStatement) GetModifiedAt() time.Time

GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.

GetModifiedAtOk

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.

SetModifiedAt

func (o *PermissionStatement) SetModifiedAt(v time.Time)

SetModifiedAt sets ModifiedAt field to given value.

GetModifiedBy

func (o *PermissionStatement) GetModifiedBy() string

GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise.

GetModifiedByOk

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.

SetModifiedBy

func (o *PermissionStatement) SetModifiedBy(v string)

SetModifiedBy sets ModifiedBy field to given value.

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