Skip to main content
weave / ObjectRef 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
const ref = new ObjectRef('my-project', 'abc123', 'def456');
const uri = ref.uri(); // weave:///my-project/object/abc123:def456

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ObjectRef(projectId, objectId, digest): ObjectRef

Parameters

NameType
projectIdstring
objectIdstring
digeststring

Returns

ObjectRef

Defined in

weaveObject.ts:25

Properties

digest

digest: string

Defined in

weaveObject.ts:28

objectId

objectId: string

Defined in

weaveObject.ts:27

projectId

projectId: string

Defined in

weaveObject.ts:26

Methods

get

get(): Promise<any>

Returns

Promise<any>

Defined in

weaveObject.ts:42

ui_url

ui_url(): string

Returns

string

Defined in

weaveObject.ts:37

uri

uri(): string

Returns

string

Defined in

weaveObject.ts:33