메인 콘텐츠로 건너뛰기
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

목차

생성자

속성

메서드

생성자

생성자

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를 생성합니다.

매개변수

NameTypeDescription
uristring다음 형식의 Weave URI입니다: weave:///entity/project/object/name:digest

반환값

ObjectRef 새 ObjectRef 인스턴스 Throws URI 형식이 잘못되었거나 object ref가 아닌 경우 오류를 던집니다. 예제
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');

정의된 위치

weaveObject.ts:44