SDK reference / Models / Sharing

ResourceShare

Kind: class

Namespace: Egulu.Sdk.Models.Sharing

A share the project made: one resource, one receiver.

Properties

NameTypeJSON nameDescription
AllowOnwardSharingbool?allowOnwardSharingWhether the receiver may share the resource on (to one more project, with no wider permissions and no later expiry; that share cannot be passed on again). Default false.
CreateTimeDateTimeOffset?createTimeThe createTime property
CreatedBystring?createdByThe createdBy property
CrossOrganizationbool?crossOrganizationTrue when the receiver is in another organisation. Such a share is accepted only by the receiving organisation's owner.
DecideTimeDateTimeOffset?decideTimeThe decideTime property
DecidedBystring?decidedByThe decidedBy property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etagThe etag property
ExpireTimeDateTimeOffset?expireTimeAfter this time the share does not work. At most 10 years ahead.
Expiredbool?expiredTrue when expireTime has passed: the share no longer works, whatever its state.
Namestring?nameprojects/{project}/locations/{location}/resourceShares/{share}.
PermissionsList<string>?permissionsWhat the receiver may do, a subset of the type's permissions (use for a snapshot, pull for a registry repository).
Receiverstring?receiverThe receiver: projects/{project} or organizations/{organization UID}. An organisation share is used by every project of that organisation once its owner accepts.
ReceiverKindModels.Sharing.ResourceShare_receiverKind?receiverKindPROJECT or ORGANIZATION.
Resourcestring?resourceThe resource's full name, for example projects/p/locations/l/diskSnapshots/s.
ResourceTypestring?resourceTypeThe kind of resource, for example storage.DiskSnapshot or delivery.RegistryRepository. See shareableResourceTypes.
RevokeTimeDateTimeOffset?revokeTimeThe revokeTime property
RevokedBystring?revokedByThe revokedBy property
StateModels.Sharing.ResourceShare_state?statePENDING until the receiver accepts, ACTIVE, DECLINED (refused or left), REVOKED.
Uidstring?uidThe share's UID; the receiver names it in receivedShares.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
ViaSharestring?viaShareFor a share passed on: the received share it comes from.