Skip to main content
Defined in: src/weaveObject.ts:23 Represents a reference to a saved Weave object. Generally, end users will not need to interact with this class directly. An ObjectRef contains the project ID, object ID, and digest that uniquely identify a saved object in Weave’s storage system.

Example

Constructors

Constructor

new ObjectRef(projectId, objectId, digest): ObjectRef
Defined in: src/weaveObject.ts:24

Parameters

projectId
string
objectId
string
digest
string

Returns

ObjectRef

Properties

digest

digest: string
Defined in: src/weaveObject.ts:27

objectId

objectId: string
Defined in: src/weaveObject.ts:26

projectId

projectId: string
Defined in: src/weaveObject.ts:25

Methods

get()

get(): Promise<any>
Defined in: src/weaveObject.ts:64

Returns

Promise<any>

ui_url()

ui_url(): string
Defined in: src/weaveObject.ts:59

Returns

string

uri()

uri(): string
Defined in: src/weaveObject.ts:55

Returns

string

fromUri()

static fromUri(uri): ObjectRef
Defined in: src/weaveObject.ts:42 Creates an ObjectRef from a Weave URI string.

Parameters

uri
string A Weave URI in the format: weave:///entity/project/object/name:digest

Returns

ObjectRef A new ObjectRef instance

Throws

Error if the URI format is invalid or not an object ref

Example