メインコンテンツへスキップ
weave / ObjectRef 保存された Weave オブジェクトへの参照を表します。 通常、エンドユーザーがこのクラスを直接操作する必要はありません。 ObjectRef には、Weave のストレージシステム内で保存されたオブジェクトを一意に識別するための、プロジェクト ID、オブジェクト ID、およびダイジェストが含まれています。 Example
const ref = new ObjectRef('my-project', 'abc123', 'def456');
const uri = ref.uri(); // weave:///my-project/object/abc123:def456

目次

コンストラクタ

プロパティ

メソッド

コンストラクタ

constructor

new ObjectRef(projectId, objectId, digest): ObjectRef

パラメータ

名前
projectIdstring
objectIdstring
digeststring

返り値

ObjectRef

定義

weaveObject.ts:26

プロパティ

digest

digest: string

定義

weaveObject.ts:29

objectId

objectId: string

定義

weaveObject.ts:28

projectId

projectId: string

定義

weaveObject.ts:27

メソッド

get

get(): Promise<any>

返り値

Promise<any>

定義

weaveObject.ts:66

ui_url

ui_url(): string

返り値

string

定義

weaveObject.ts:61

uri

uri(): string

返り値

string

定義

weaveObject.ts:57

fromUri

fromUri(uri): ObjectRef Weave URI 文字列から ObjectRef を作成します。

パラメータ

名前説明
uristringWeave URI(形式: weave:///entity/project/object/name:digest)

返り値

ObjectRef 新しい ObjectRef インスタンス Throws URI の形式が無効な場合、またはオブジェクト参照でない場合にエラーを投げます。 Example
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');

定義

weaveObject.ts:44