메인 콘텐츠로 건너뛰기
weave / ObjectRef 저장된 Weave 객체에 대한 참조입니다. 일반적으로 최종 사용자는 이 클래스를 직접 다룰 필요가 없습니다. ObjectRef에는 Weave의 저장소 시스템에서 저장된 객체를 고유하게 식별하는 프로젝트 ID, 객체 ID, 다이제스트가 포함됩니다. 예시
const ref = new ObjectRef('my-project', 'abc123', 'def456');
const uri = ref.uri(); // weave:///my-project/object/abc123:def456

목차

생성자

속성

방법

생성자

생성자

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

방법

조회

조회(): 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 형식이 잘못되었거나 ObjectRef가 아닌 경우 오류 Example
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');

정의 위치

weaveObject.ts:44