[SDK reference](../../index.md) / [Models](../index.md) / [Sharing](index.md)

# ResourceShare

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Sharing`  

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

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `AllowOnwardSharing` | `bool?` | `allowOnwardSharing` | Whether 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. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `CreatedBy` | `string?` | `createdBy` | The createdBy property |
| `CrossOrganization` | `bool?` | `crossOrganization` | True when the receiver is in another organisation. Such a share is accepted only by the receiving organisation's owner. |
| `DecideTime` | `DateTimeOffset?` | `decideTime` | The decideTime property |
| `DecidedBy` | `string?` | `decidedBy` | The decidedBy property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | The etag property |
| `ExpireTime` | `DateTimeOffset?` | `expireTime` | After this time the share does not work. At most 10 years ahead. |
| `Expired` | `bool?` | `expired` | True when expireTime has passed: the share no longer works, whatever its state. |
| `Name` | `string?` | `name` | projects/{project}/locations/{location}/resourceShares/{share}. |
| `Permissions` | `List<string>?` | `permissions` | What the receiver may do, a subset of the type's permissions (use for a snapshot, pull for a registry repository). |
| `Receiver` | `string?` | `receiver` | The receiver: projects/{project} or organizations/{organization UID}. An organisation share is used by every project of that organisation once its owner accepts. |
| `ReceiverKind` | `Models.Sharing.ResourceShare_receiverKind?` | `receiverKind` | PROJECT or ORGANIZATION. |
| `Resource` | `string?` | `resource` | The resource's full name, for example projects/p/locations/l/diskSnapshots/s. |
| `ResourceType` | `string?` | `resourceType` | The kind of resource, for example storage.DiskSnapshot or delivery.RegistryRepository. See shareableResourceTypes. |
| `RevokeTime` | `DateTimeOffset?` | `revokeTime` | The revokeTime property |
| `RevokedBy` | `string?` | `revokedBy` | The revokedBy property |
| `State` | `Models.Sharing.ResourceShare_state?` | `state` | PENDING until the receiver accepts, ACTIVE, DECLINED (refused or left), REVOKED. |
| `Uid` | `string?` | `uid` | The share's UID; the receiver names it in receivedShares. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `ViaShare` | `string?` | `viaShare` | For a share passed on: the received share it comes from. |
