Name | Type | Description | Notes |
---|---|---|---|
Id | Pointer to string | The unique identifier of the permission among all permissions on the item. Read-only. | [optional] [readonly] |
HasPassword | Pointer to bool | Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only. | [optional] [readonly] |
ExpirationDateTime | Pointer to NullableTime | An optional expiration date which limits the permission in time. | [optional] |
CreatedDateTime | Pointer to NullableTime | An optional creation date. Libregraph only. | [optional] |
GrantedToV2 | Pointer to SharePointIdentitySet | [optional] | |
Link | Pointer to SharingLink | [optional] | |
Roles | Pointer to []string | [optional] | |
GrantedToIdentities | Pointer to []IdentitySet | For link type permissions, the details of the identity to whom permission was granted. This could be used to grant access to a an external user that can be identified by email, aka guest accounts. | [optional] |
LibreGraphPermissionsActions | Pointer to []string | Use this to create a permission with custom actions. | [optional] |
Invitation | Pointer to SharingInvitation | [optional] |
func NewPermission() *Permission
NewPermission instantiates a new Permission 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 NewPermissionWithDefaults() *Permission
NewPermissionWithDefaults instantiates a new Permission 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 *Permission) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Permission) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetId(v string)
SetId sets Id field to given value.
func (o *Permission) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Permission) GetHasPassword() bool
GetHasPassword returns the HasPassword field if non-nil, zero value otherwise.
func (o *Permission) GetHasPasswordOk() (*bool, bool)
GetHasPasswordOk returns a tuple with the HasPassword field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetHasPassword(v bool)
SetHasPassword sets HasPassword field to given value.
func (o *Permission) HasHasPassword() bool
HasHasPassword returns a boolean if a field has been set.
func (o *Permission) GetExpirationDateTime() time.Time
GetExpirationDateTime returns the ExpirationDateTime field if non-nil, zero value otherwise.
func (o *Permission) GetExpirationDateTimeOk() (*time.Time, bool)
GetExpirationDateTimeOk returns a tuple with the ExpirationDateTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetExpirationDateTime(v time.Time)
SetExpirationDateTime sets ExpirationDateTime field to given value.
func (o *Permission) HasExpirationDateTime() bool
HasExpirationDateTime returns a boolean if a field has been set.
func (o *Permission) SetExpirationDateTimeNil(b bool)
SetExpirationDateTimeNil sets the value for ExpirationDateTime to be an explicit nil
func (o *Permission) UnsetExpirationDateTime()
UnsetExpirationDateTime ensures that no value is present for ExpirationDateTime, not even an explicit nil
func (o *Permission) GetCreatedDateTime() time.Time
GetCreatedDateTime returns the CreatedDateTime field if non-nil, zero value otherwise.
func (o *Permission) GetCreatedDateTimeOk() (*time.Time, bool)
GetCreatedDateTimeOk returns a tuple with the CreatedDateTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetCreatedDateTime(v time.Time)
SetCreatedDateTime sets CreatedDateTime field to given value.
func (o *Permission) HasCreatedDateTime() bool
HasCreatedDateTime returns a boolean if a field has been set.
func (o *Permission) SetCreatedDateTimeNil(b bool)
SetCreatedDateTimeNil sets the value for CreatedDateTime to be an explicit nil
func (o *Permission) UnsetCreatedDateTime()
UnsetCreatedDateTime ensures that no value is present for CreatedDateTime, not even an explicit nil
func (o *Permission) GetGrantedToV2() SharePointIdentitySet
GetGrantedToV2 returns the GrantedToV2 field if non-nil, zero value otherwise.
func (o *Permission) GetGrantedToV2Ok() (*SharePointIdentitySet, bool)
GetGrantedToV2Ok returns a tuple with the GrantedToV2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetGrantedToV2(v SharePointIdentitySet)
SetGrantedToV2 sets GrantedToV2 field to given value.
func (o *Permission) HasGrantedToV2() bool
HasGrantedToV2 returns a boolean if a field has been set.
func (o *Permission) GetLink() SharingLink
GetLink returns the Link field if non-nil, zero value otherwise.
func (o *Permission) GetLinkOk() (*SharingLink, bool)
GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetLink(v SharingLink)
SetLink sets Link field to given value.
func (o *Permission) HasLink() bool
HasLink returns a boolean if a field has been set.
func (o *Permission) GetRoles() []string
GetRoles returns the Roles field if non-nil, zero value otherwise.
func (o *Permission) GetRolesOk() (*[]string, bool)
GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetRoles(v []string)
SetRoles sets Roles field to given value.
func (o *Permission) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o *Permission) GetGrantedToIdentities() []IdentitySet
GetGrantedToIdentities returns the GrantedToIdentities field if non-nil, zero value otherwise.
func (o *Permission) GetGrantedToIdentitiesOk() (*[]IdentitySet, bool)
GetGrantedToIdentitiesOk returns a tuple with the GrantedToIdentities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetGrantedToIdentities(v []IdentitySet)
SetGrantedToIdentities sets GrantedToIdentities field to given value.
func (o *Permission) HasGrantedToIdentities() bool
HasGrantedToIdentities returns a boolean if a field has been set.
func (o *Permission) GetLibreGraphPermissionsActions() []string
GetLibreGraphPermissionsActions returns the LibreGraphPermissionsActions field if non-nil, zero value otherwise.
func (o *Permission) GetLibreGraphPermissionsActionsOk() (*[]string, bool)
GetLibreGraphPermissionsActionsOk returns a tuple with the LibreGraphPermissionsActions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetLibreGraphPermissionsActions(v []string)
SetLibreGraphPermissionsActions sets LibreGraphPermissionsActions field to given value.
func (o *Permission) HasLibreGraphPermissionsActions() bool
HasLibreGraphPermissionsActions returns a boolean if a field has been set.
func (o *Permission) GetInvitation() SharingInvitation
GetInvitation returns the Invitation field if non-nil, zero value otherwise.
func (o *Permission) GetInvitationOk() (*SharingInvitation, bool)
GetInvitationOk returns a tuple with the Invitation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Permission) SetInvitation(v SharingInvitation)
SetInvitation sets Invitation field to given value.
func (o *Permission) HasInvitation() bool
HasInvitation returns a boolean if a field has been set.