メインコンテンツへスキップ
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

目次

コンストラクター

プロパティ

method

コンストラクター

コンストラクター

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

method

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を生成します。

パラメーター

タイプ説明
uristring以下の形式の Weave URI: weave:///entity/project/object/name:digest

戻り値

ObjectRef 新しい ObjectRef インスタンス Throws URI 形式が無効、または object ref ではない場合はエラー Example
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');

定義場所

weaveObject.ts:44