Package odata.msgraph.client.beta.entity
Class Permission
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.Permission
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Permission extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPermission.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeexpirationDateTimeprotected IdentitySetgrantedToprotected List<IdentitySet>grantedToIdentitiesprotected StringgrantedToIdentitiesNextLinkprotected List<SharePointIdentitySet>grantedToIdentitiesV2protected StringgrantedToIdentitiesV2NextLinkprotected SharePointIdentitySetgrantedToV2protected BooleanhasPasswordprotected ItemReferenceinheritedFromprotected SharingInvitationinvitationprotected SharingLinklinkprotected List<String>rolesprotected StringrolesNextLinkprotected StringshareId-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPermission()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Permission.BuilderbuilderPermission()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getExpirationDateTime()Optional<IdentitySet>getGrantedTo()Org.OData.Core.V1.Revisionscom.github.davidmoten.odata.client.CollectionPage<IdentitySet>getGrantedToIdentities()Org.OData.Core.V1.Revisionscom.github.davidmoten.odata.client.CollectionPage<IdentitySet>getGrantedToIdentities(com.github.davidmoten.odata.client.HttpRequestOptions options)Org.OData.Core.V1.Revisionscom.github.davidmoten.odata.client.CollectionPage<SharePointIdentitySet>getGrantedToIdentitiesV2()com.github.davidmoten.odata.client.CollectionPage<SharePointIdentitySet>getGrantedToIdentitiesV2(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<SharePointIdentitySet>getGrantedToV2()Optional<Boolean>getHasPassword()Optional<ItemReference>getInheritedFrom()Optional<SharingInvitation>getInvitation()Optional<SharingLink>getLink()com.github.davidmoten.odata.client.CollectionPage<String>getRoles()com.github.davidmoten.odata.client.CollectionPage<String>getRoles(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getShareId()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Permission>grant(List<String> roles, List<DriveRecipient> recipients)StringodataTypeName()Permissionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Permissionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Permission>revokeGrants(List<DriveRecipient> grantees)StringtoString()PermissionwithExpirationDateTime(OffsetDateTime expirationDateTime)PermissionwithGrantedTo(IdentitySet grantedTo)Returns an immutable copy ofthiswith just thegrantedTofield changed.PermissionwithGrantedToIdentities(List<IdentitySet> grantedToIdentities)Returns an immutable copy ofthiswith just thegrantedToIdentitiesfield changed.PermissionwithGrantedToIdentitiesV2(List<SharePointIdentitySet> grantedToIdentitiesV2)PermissionwithGrantedToV2(SharePointIdentitySet grantedToV2)PermissionwithHasPassword(Boolean hasPassword)PermissionwithInheritedFrom(ItemReference inheritedFrom)PermissionwithInvitation(SharingInvitation invitation)PermissionwithLink(SharingLink link)PermissionwithRoles(List<String> roles)PermissionwithShareId(String shareId)PermissionwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
expirationDateTime
protected OffsetDateTime expirationDateTime
-
grantedTo
protected IdentitySet grantedTo
-
grantedToIdentities
protected List<IdentitySet> grantedToIdentities
-
grantedToIdentitiesNextLink
protected String grantedToIdentitiesNextLink
-
grantedToIdentitiesV2
protected List<SharePointIdentitySet> grantedToIdentitiesV2
-
grantedToIdentitiesV2NextLink
protected String grantedToIdentitiesV2NextLink
-
grantedToV2
protected SharePointIdentitySet grantedToV2
-
hasPassword
protected Boolean hasPassword
-
inheritedFrom
protected ItemReference inheritedFrom
-
invitation
protected SharingInvitation invitation
-
link
protected SharingLink link
-
rolesNextLink
protected String rolesNextLink
-
shareId
protected String shareId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderPermission
public static Permission.Builder builderPermission()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getExpirationDateTime
public Optional<OffsetDateTime> getExpirationDateTime()
-
withExpirationDateTime
public Permission withExpirationDateTime(OffsetDateTime expirationDateTime)
-
getGrantedTo
public Optional<IdentitySet> getGrantedTo()
Org.OData.Core.V1.Revisions
- Returns:
- property grantedTo
-
withGrantedTo
public Permission withGrantedTo(IdentitySet grantedTo)
Returns an immutable copy ofthiswith just thegrantedTofield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Revisions
- Parameters:
grantedTo- new value ofgrantedTofield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegrantedTofield changed
-
getGrantedToIdentities
public com.github.davidmoten.odata.client.CollectionPage<IdentitySet> getGrantedToIdentities()
Org.OData.Core.V1.Revisions
- Returns:
- property grantedToIdentities
-
withGrantedToIdentities
public Permission withGrantedToIdentities(List<IdentitySet> grantedToIdentities)
Returns an immutable copy ofthiswith just thegrantedToIdentitiesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Revisions
- Parameters:
grantedToIdentities- new value ofgrantedToIdentitiesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegrantedToIdentitiesfield changed
-
getGrantedToIdentities
public com.github.davidmoten.odata.client.CollectionPage<IdentitySet> getGrantedToIdentities(com.github.davidmoten.odata.client.HttpRequestOptions options)
Org.OData.Core.V1.Revisions
- Parameters:
options- specify connect and read timeouts- Returns:
- property grantedToIdentities
-
getGrantedToIdentitiesV2
public com.github.davidmoten.odata.client.CollectionPage<SharePointIdentitySet> getGrantedToIdentitiesV2()
-
withGrantedToIdentitiesV2
public Permission withGrantedToIdentitiesV2(List<SharePointIdentitySet> grantedToIdentitiesV2)
-
getGrantedToIdentitiesV2
public com.github.davidmoten.odata.client.CollectionPage<SharePointIdentitySet> getGrantedToIdentitiesV2(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getGrantedToV2
public Optional<SharePointIdentitySet> getGrantedToV2()
-
withGrantedToV2
public Permission withGrantedToV2(SharePointIdentitySet grantedToV2)
-
withHasPassword
public Permission withHasPassword(Boolean hasPassword)
-
getInheritedFrom
public Optional<ItemReference> getInheritedFrom()
-
withInheritedFrom
public Permission withInheritedFrom(ItemReference inheritedFrom)
-
getInvitation
public Optional<SharingInvitation> getInvitation()
-
withInvitation
public Permission withInvitation(SharingInvitation invitation)
-
getLink
public Optional<SharingLink> getLink()
-
withLink
public Permission withLink(SharingLink link)
-
getRoles
public com.github.davidmoten.odata.client.CollectionPage<String> getRoles()
-
withRoles
public Permission withRoles(List<String> roles)
-
getRoles
public com.github.davidmoten.odata.client.CollectionPage<String> getRoles(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withShareId
public Permission withShareId(String shareId)
-
withUnmappedField
public Permission withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Permission patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Permission put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
grant
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Permission> grant(List<String> roles, List<DriveRecipient> recipients)
-
revokeGrants
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Permission> revokeGrants(List<DriveRecipient> grantees)
-
-