Name | Type | Description | Notes |
---|---|---|---|
PermissionName | string | Content permission name. Valid values are: `View`, `GrantView`, `Edit`, `GrantEdit`, `Manage`, and `GrantManage`. | |
SourceType | string | Type of source for the permission. Valid values are: `user`, `role`, and `org`. | |
SourceId | string | An identifier that belongs to the source type chosen above. For e.g. if the sourceType is set to "user", sourceId should be identifier of a user (same goes for `role` and `org` sourceType) | |
ContentId | string | Unique identifier for the content item. |
func NewContentPermissionAssignment(permissionName string, sourceType string, sourceId string, contentId string, ) *ContentPermissionAssignment
NewContentPermissionAssignment instantiates a new ContentPermissionAssignment 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 NewContentPermissionAssignmentWithDefaults() *ContentPermissionAssignment
NewContentPermissionAssignmentWithDefaults instantiates a new ContentPermissionAssignment 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 *ContentPermissionAssignment) GetPermissionName() string
GetPermissionName returns the PermissionName field if non-nil, zero value otherwise.
func (o *ContentPermissionAssignment) GetPermissionNameOk() (*string, bool)
GetPermissionNameOk returns a tuple with the PermissionName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentPermissionAssignment) SetPermissionName(v string)
SetPermissionName sets PermissionName field to given value.
func (o *ContentPermissionAssignment) GetSourceType() string
GetSourceType returns the SourceType field if non-nil, zero value otherwise.
func (o *ContentPermissionAssignment) GetSourceTypeOk() (*string, bool)
GetSourceTypeOk returns a tuple with the SourceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentPermissionAssignment) SetSourceType(v string)
SetSourceType sets SourceType field to given value.
func (o *ContentPermissionAssignment) GetSourceId() string
GetSourceId returns the SourceId field if non-nil, zero value otherwise.
func (o *ContentPermissionAssignment) GetSourceIdOk() (*string, bool)
GetSourceIdOk returns a tuple with the SourceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentPermissionAssignment) SetSourceId(v string)
SetSourceId sets SourceId field to given value.
func (o *ContentPermissionAssignment) GetContentId() string
GetContentId returns the ContentId field if non-nil, zero value otherwise.
func (o *ContentPermissionAssignment) GetContentIdOk() (*string, bool)
GetContentIdOk returns a tuple with the ContentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentPermissionAssignment) SetContentId(v string)
SetContentId sets ContentId field to given value.