Class Permission

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Permission
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class Permission extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Permission.
  • Field Details

    • expirationDateTime

      @SerializedName(value="expirationDateTime", alternate="ExpirationDateTime") @Expose @Nullable public OffsetDateTime expirationDateTime
      The Expiration Date Time. A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
    • grantedTo

      @Deprecated @SerializedName(value="grantedTo", alternate="GrantedTo") @Expose @Nullable public IdentitySet grantedTo
      Deprecated.
      The grantedTo property is deprecated. Please refer to grantedToV2
      The Granted To.
    • grantedToIdentities

      @Deprecated @SerializedName(value="grantedToIdentities", alternate="GrantedToIdentities") @Expose @Nullable public List<IdentitySet> grantedToIdentities
      Deprecated.
      The grantedToIdentities property is deprecated. Please refer to grantedToIdentitiesV2
      The Granted To Identities.
    • grantedToIdentitiesV2

      @SerializedName(value="grantedToIdentitiesV2", alternate="GrantedToIdentitiesV2") @Expose @Nullable public List<SharePointIdentitySet> grantedToIdentitiesV2
      The Granted To Identities V2. For link type permissions, the details of the users to whom permission was granted. Read-only.
    • grantedToV2

      @SerializedName(value="grantedToV2", alternate="GrantedToV2") @Expose @Nullable public SharePointIdentitySet grantedToV2
      The Granted To V2. For user type permissions, the details of the users and applications for this permission. Read-only.
    • hasPassword

      @SerializedName(value="hasPassword", alternate="HasPassword") @Expose @Nullable public Boolean hasPassword
      The Has Password. Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only. For OneDrive Personal only..
    • inheritedFrom

      @SerializedName(value="inheritedFrom", alternate="InheritedFrom") @Expose @Nullable public ItemReference inheritedFrom
      The Inherited From. Provides a reference to the ancestor of the current permission, if it is inherited from an ancestor. Read-only.
    • invitation

      @SerializedName(value="invitation", alternate="Invitation") @Expose @Nullable public SharingInvitation invitation
      The Invitation. Details of any associated sharing invitation for this permission. Read-only.
    • roles

      @SerializedName(value="roles", alternate="Roles") @Expose @Nullable public List<String> roles
      The Roles. The type of permission, for example, read. See below for the full list of roles. Read-only.
    • shareId

      @SerializedName(value="shareId", alternate="ShareId") @Expose @Nullable public String shareId
      The Share Id. A unique token that can be used to access this shared item via the **shares** API. Read-only.
  • Constructor Details

    • Permission

      public Permission()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to