public class Permission extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
Permission.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
expirationDateTime |
protected IdentitySet |
grantedTo |
protected List<IdentitySet> |
grantedToIdentities |
protected String |
grantedToIdentitiesNextLink |
protected Boolean |
hasPassword |
protected ItemReference |
inheritedFrom |
protected SharingInvitation |
invitation |
protected SharingLink |
link |
protected List<String> |
roles |
protected String |
rolesNextLink |
protected String |
shareId |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
Permission() |
| Modifier and Type | Method and Description |
|---|---|
static Permission.Builder |
builderPermission()
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.ChangedFields |
getChangedFields() |
Optional<OffsetDateTime> |
getExpirationDateTime() |
Optional<IdentitySet> |
getGrantedTo() |
com.github.davidmoten.odata.client.CollectionPage<IdentitySet> |
getGrantedToIdentities() |
Optional<Boolean> |
getHasPassword() |
Optional<ItemReference> |
getInheritedFrom() |
Optional<SharingInvitation> |
getInvitation() |
Optional<SharingLink> |
getLink() |
com.github.davidmoten.odata.client.CollectionPage<String> |
getRoles() |
Optional<String> |
getShareId() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Permission> |
grant(List<String> roles,
List<DriveRecipient> recipients) |
String |
odataTypeName() |
Permission |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
Permission |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
Permission |
withExpirationDateTime(OffsetDateTime expirationDateTime) |
Permission |
withGrantedTo(IdentitySet grantedTo) |
Permission |
withHasPassword(Boolean hasPassword) |
Permission |
withInheritedFrom(ItemReference inheritedFrom) |
Permission |
withInvitation(SharingInvitation invitation) |
Permission |
withLink(SharingLink link) |
Permission |
withShareId(String shareId) |
protected OffsetDateTime expirationDateTime
protected IdentitySet grantedTo
protected List<IdentitySet> grantedToIdentities
protected String grantedToIdentitiesNextLink
protected Boolean hasPassword
protected ItemReference inheritedFrom
protected SharingInvitation invitation
protected SharingLink link
protected String rolesNextLink
protected String shareId
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static Permission.Builder builderPermission()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<OffsetDateTime> getExpirationDateTime()
public Permission withExpirationDateTime(OffsetDateTime expirationDateTime)
public Optional<IdentitySet> getGrantedTo()
public Permission withGrantedTo(IdentitySet grantedTo)
public com.github.davidmoten.odata.client.CollectionPage<IdentitySet> getGrantedToIdentities()
public Permission withHasPassword(Boolean hasPassword)
public Optional<ItemReference> getInheritedFrom()
public Permission withInheritedFrom(ItemReference inheritedFrom)
public Optional<SharingInvitation> getInvitation()
public Permission withInvitation(SharingInvitation invitation)
public Optional<SharingLink> getLink()
public Permission withLink(SharingLink link)
public com.github.davidmoten.odata.client.CollectionPage<String> getRoles()
public Permission withShareId(String shareId)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic Permission patch()
this with changed fields reset.public Permission put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Permission> grant(List<String> roles, List<DriveRecipient> recipients)
Copyright © 2018–2020. All rights reserved.